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()
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()