03-12-2011, 06:59 AM | #16 |
Calibre Plugins Developer
Posts: 4,678
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Have a look at the gui.json file, and if necessary edit the dictionary values in there if you cannot do it through the gui itself.
The dialog will only appear if it does not find that plugin name already on a menu/toolbar. The idea being that when you upgrade you don't get nagged. So if you want to test with the gui box part make sure the plugin is not on any of the four menus/toolbars, and then do Add plugin. |
03-12-2011, 07:15 AM | #17 |
Sigil developer
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Ok, that makes sense. On my main system I definitely added it to both toolbars before while testing (removing the dont_add_to line). So on this system, if I remove the plugin, everything looks gone. But when I add it I don't get prompted and it appears on both toolbars.
After editing the gui.json to remove all traces of the new/old version, I get the expected behaviour - I get prompted only on the initial install and it goes where I tell it. I see that I also need to add 'context-menu-device' to the dont_add_to set since I only want users to be able to select the main toolbar when device is connected. And I'll update my instructions after doing that since users won't have to select it manually. Thanks again. |
Advert | |
|
03-12-2011, 09:11 AM | #18 | |
Calibre Plugins Developer
Posts: 4,678
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Unfortunately in our plugins we have to set the icon name in that action spec to None, because our icons are coming from the plugin zip file. Your plugin used to have an icon appear for it because you used to set that action_spec value to the name of an icon that was in Calibre. One workaround for this that comes to mind is if the Calibre code was to support grabbing the icon from the .qaction of the InterfaceAction. I added these lines of code at line 58: Code:
if hasattr(self._data[row], 'qaction'): icon = self._data[row].qaction.icon() if not icon.isNull(): return QVariant(icon) |
|
03-12-2011, 11:49 AM | #19 |
creator of calibre
Posts: 44,380
Karma: 23766374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Committed.
|
03-12-2011, 04:00 PM | #20 |
Sigil developer
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
I'll look forward to the release
|
Advert | |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Troubleshooting Menu option for "Create New Collection" is greyed out, why? | geekgeek | Amazon Kindle | 19 | 10-10-2016 09:38 PM |
Possible new feature: Adding a r/c menu option to add to user category items | kiwidude | Calibre | 29 | 11-30-2010 09:14 AM |
Error Adding Plugin | modkindle | Plugins | 14 | 05-16-2010 12:14 PM |
Power Mode option in diagnostics menu? | scarab1 | Ectaco jetBook | 0 | 02-28-2010 10:59 PM |
Microsoft to Offer Downgrade Option for Vista Business Users | Azayzel | Deals and Resources (No Self-Promotion or Affiliate Links) | 22 | 09-27-2007 10:26 PM |