View Single Post
Old 04-23-2018, 01:33 PM   #1490
sweth
Connoisseur
sweth began at the beginning.
 
Posts: 68
Karma: 10
Join Date: May 2015
Device: Kindle Fire 7 (7G), Kindle PW (2G), Kindle Scribe
Quote:
Originally Posted by davidfor View Post
It's not just this plugin, the User Interface plugin cannot be disabled. I've never looked into why. The only thing you can do is uninstall them.
It looks like the issue is that the InterfaceActionBase class that the plugin is inheriting from sets can_be_disabled to False as the default:

Code:
class InterfaceActionBase(Plugin):  # {{{

    supported_platforms = ['windows', 'osx', 'linux']
    author         = 'Kovid Goyal'
    type = _('User interface action')
    can_be_disabled = False
Not sure why it has that as the default for UI plugins, when the API docs seem to warn against setting that to False, but allowing it to be disabled *should* be as simple as setting can_be_disabled back to True in __init__.py
sweth is offline