07-15-2023, 03:08 AM | #1 |
Connoisseur
Posts: 90
Karma: 50742
Join Date: Jan 2011
Device: PW5
|
Menubar behavior for plugin
This is likely me being stupid.
When my plugin is added to the toolbar, it appears with a clickable menu icon to launch the main plugin UI. Together with the additional dropdown menu defined by the plugin. When the plugin is added to the menubar, the menu doesn't include the menu item to launch the main plugin UI. How can I include that? (please see screenshot attached) |
07-15-2023, 04:07 AM | #2 |
creator of calibre
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use action_menu_clone_qaction
|
07-15-2023, 04:18 AM | #3 |
Connoisseur
Posts: 90
Karma: 50742
Join Date: Jan 2011
Device: PW5
|
action_menu_clone_qaction adds it to both the menubar and the toolbar.
But it's not necessary for the toolbar, since the main the toolbar menu icon itself will already do the same thing. Is there a way to just add it for the menubar? |
07-15-2023, 04:48 AM | #4 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I think having it in both places is right, especially if you can define a shortcut for the "main" action. Without the cloned menu you can't see the shortcut definition.
|
07-15-2023, 04:50 AM | #5 |
creator of calibre
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
all of calibre's builtin toolbar buttons behave the same way with the cloned item.
|
07-15-2023, 05:02 AM | #6 |
Connoisseur
Posts: 90
Karma: 50742
Join Date: Jan 2011
Device: PW5
|
If that's the calibre convention, then it's fine with me.
Thanks all! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Preferences - Menubar | ColMac | Calibre | 5 | 09-22-2016 06:55 AM |
frame indent behavior and wrap spacing behavior | rjwse@aol.com | Conversion | 0 | 03-10-2015 12:03 PM |
Weird plugin behavior with new Calibre | anesthezea | Calibre | 2 | 09-08-2014 08:55 PM |
Interface Action Plugin doesn't get to the placing icons into menubar | kabirmaar | Plugins | 5 | 05-24-2014 09:39 PM |
Odd calibre/plugin behavior | Gunnerp245 | Plugins | 6 | 01-03-2013 01:16 PM |