Quote:
Originally Posted by Comfy.n
edit: in this case, I think I misinterpreted the event Library Changed as Library Switched. Anyway, I finally got the layout action to run upon switching to a specific library, but what I think will be useful is something that will need more testing: for library A, show this; for library B, hide that...
|
I had what I think is a similar problem. The Action Chains event "Library Changed" is triggered only when the library is actually changed. When you first start calibre the event "Calibre Initialized" is triggered. To get things to work on startup I had to call my chain when either event occurred.
If I was doing this "in anger" I would probably build an action chain per library, setting up the panels as I want for that library, with a chain condition that checks the library name. I would then build a chain using "Chain Caller" to call each of these library chains. Finally, I would call the chain caller chain in the Library Changed and the Calibre Initialized events.
NB: our hope is that there is enough of an API in this action to permit the View Manager to offer controlling which panels are visible using check boxes or what-have-you.
Quote:
Originally Posted by Comfy.n
This was a very cool addition, thanks so much @chaley and OP for the suggestion!
The new 'Hide all' option provides an instant expansion of screen real estate, making it easier to adjust/order columns in book list mode.
|
You are welcome.
For amusement: my first implementation included a "Show all" action that turned out to be less than useful. In particular, showing the cover grid, the cover browser, and QuickView at the same time is best avoided.