View Single Post
Old 09-25-2021, 04:55 PM   #724
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,205
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Just curious: Am I misremembering, or was there an option to make a chain invisible in the menu if the conditions aren't verified?
The option is in the conditions dialog, and it greys out the menu entry without making it invisible.

Quote:
Originally Posted by ownedbycats View Post
Also: For my "switch VL" chain, is it possible to set a condition to do an action (clear marked books) unless I'm switching to the Cleanup VL? There's view_manager_last_view but I think that's for the currently selected view.
Action Chains events can pass arguments to their member chains. In case of the "VL Tab Changed" event it has only one argument, the vl tab name, which can be accessed and used in conditions:

Code:
program:
    vl = globals(_event_args)
Attached below is a chain, that if added to an event, will print the event arguments to the terminal (you can use it for debugging and exploration of event arguments)
Attached Files
File Type: zip print_event_data.zip (470 Bytes, 292 views)

Last edited by capink; 09-25-2021 at 06:14 PM.
capink is offline   Reply With Quote