Пример #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()
Пример #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()