Exemplo n.º 1
0
    def onSettingsChanged(self):
        hotkey = utils.ADDON.getSetting('HOTKEY')
        context = utils.ADDON.getSetting('CONTEXT') == 'true'

        if self.hotkey == hotkey and self.context == context:
            return

        self.hotkey = hotkey
        self.context = context

        utils.UpdateKeymaps()
Exemplo n.º 2
0
    def onSettingsChanged(self):
        hotkey = utils.ADDON.getSetting('HOTKEY')
        context = utils.ADDON.getSetting('CONTEXT') == 'true'

        self.updateStdContextMenuItem()

        utils.VerifyKeymaps()

        if self.hotkey == hotkey and self.context == context:
            return

        self.hotkey = hotkey
        self.context = context

        utils.UpdateKeymaps()