View Single Post
Old 11-15-2014, 10:52 PM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,491
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes but those will change only in response to configuration, correct? You can just have the plugin ask the user to restart calibre to have the config changes take effect.

Otherwise, if you really want to continue with adding/removing actions dynamically, the only additional wrinkle is that now you have to do

self.gui.removeAction(action_to_be_removed)

in addition to unregistering the shortcut from the keyboard manager.
kovidgoyal is offline