Piccoli fix e ottimizzazioni

This commit is contained in:
Alhaziel01
2021-01-04 16:20:10 +01:00
parent dda4d4bbc6
commit 1de58db75b
2 changed files with 13 additions and 10 deletions

View File

@@ -127,12 +127,13 @@ class Main(xbmcgui.WindowXMLDialog):
def onAction(self, action):
action = action.getId()
# exit
if action.getId() in [xbmcgui.ACTION_PREVIOUS_MENU, xbmcgui.ACTION_NAV_BACK]:
if action in [xbmcgui.ACTION_PREVIOUS_MENU, xbmcgui.ACTION_NAV_BACK]:
self.close()
if submenu: open_shortcut_menu(self=True)
if action.getId() == xbmcgui.ACTION_CONTEXT_MENU:
if action == xbmcgui.ACTION_CONTEXT_MENU:
config.open_settings()
focus = self.getFocusId()