View Single Post
Old 02-08-2020, 04:33 PM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Hmm. Maybe I spoke too soon.
Code:
popup_type = QToolButton.InstantPopup
gave me the icon in the context menu but it seems to have also disabled the Shortcut key setting which is working OK when I have
Code:
popup_type = QToolButton.MenuButtonPopup
... or perhaps I haven't found the magic combo yet. The genesis is as shown in post #1 and the bit before genesis() is
Code:
class ScrambleEbookUiAction(InterfaceAction):
    name = PLUGIN_NAME
    ttip = '%s\n(%s)' % (PLUGIN_DESCRIPTION, ','.join(OK_FORMATS))
    action_spec = (PLUGIN_NAME, None, ttip, _('Ctrl+Shift+S'))
    popup_type = QToolButton.InstantPopup
    action_type = 'current'
    dont_add_to = frozenset([])
    dont_remove_from = frozenset([])
Is there an obvious error here?

Last edited by jackie_w; 02-08-2020 at 04:38 PM.
jackie_w is offline   Reply With Quote