focus fix
parent
0f61ad977e
commit
76702025ef
2
Core.py
2
Core.py
|
@ -1475,7 +1475,7 @@ class Core:
|
||||||
|
|
||||||
def playTorrent(self, params={}):
|
def playTorrent(self, params={}):
|
||||||
if params.get('filename'):
|
if params.get('filename'):
|
||||||
torrentUrl = params.get('filename')
|
torrentUrl = unquote(params.get('filename'))
|
||||||
else:
|
else:
|
||||||
torrentUrl = self.__settings__.getSetting("lastTorrent")
|
torrentUrl = self.__settings__.getSetting("lastTorrent")
|
||||||
#xbmc.executebuiltin('Action(Stop)')
|
#xbmc.executebuiltin('Action(Stop)')
|
||||||
|
|
|
@ -1888,14 +1888,14 @@ def first_run_260():
|
||||||
|
|
||||||
def estuary():
|
def estuary():
|
||||||
if __settings__.getSetting('skin_optimization') not in ['7', '0'] and \
|
if __settings__.getSetting('skin_optimization') not in ['7', '0'] and \
|
||||||
__settings__.getSetting('ask17_skin_optimization') != 'true':
|
__settings__.getSetting('ask17_skin_optimization') != 'True':
|
||||||
|
|
||||||
yes = xbmcgui.Dialog().yesno('< %s >' % (Localization.localize('Torrenter Update ') + '2.6.0'),
|
yes = xbmcgui.Dialog().yesno('< %s >' % (Localization.localize('Torrenter Update ') + '2.6.0'),
|
||||||
Localization.localize('Torrenter has a better view style for Kodi 17 default skin.'),
|
Localization.localize('Torrenter has a better view style for Kodi 17 default skin.'),
|
||||||
Localization.localize('Would you like to try it?'), )
|
Localization.localize('Would you like to try it?'), )
|
||||||
if yes:
|
if yes:
|
||||||
__settings__.setSetting('skin_optimization', '7')
|
__settings__.setSetting('skin_optimization', '7')
|
||||||
__settings__.setSetting('ask17_skin_optimization', 'true')
|
__settings__.setSetting('ask_skin_optimization', 'True')
|
||||||
|
|
||||||
def seeking_warning(seek):
|
def seeking_warning(seek):
|
||||||
if __settings__.getSetting('torrent_player')!='1':
|
if __settings__.getSetting('torrent_player')!='1':
|
||||||
|
|
|
@ -64,6 +64,7 @@ class SearchWindow(pyxbmct.AddonDialogWindow):
|
||||||
self.setGeometry(1280, 720, 9, 16)
|
self.setGeometry(1280, 720, 9, 16)
|
||||||
self.set_navi()
|
self.set_navi()
|
||||||
self.set_controls()
|
self.set_controls()
|
||||||
|
self.set_focus()
|
||||||
self.connect_controls()
|
self.connect_controls()
|
||||||
if params and params.get('mode'):
|
if params and params.get('mode'):
|
||||||
if params.get('mode') == 'load':
|
if params.get('mode') == 'load':
|
||||||
|
@ -253,7 +254,7 @@ class SearchWindow(pyxbmct.AddonDialogWindow):
|
||||||
def navi_save(self, mode = None):
|
def navi_save(self, mode = None):
|
||||||
debug('navi_save init')
|
debug('navi_save init')
|
||||||
|
|
||||||
if mode: self.set_focus(mode)
|
self.set_focus(mode)
|
||||||
|
|
||||||
navi = json.dumps(self.navi)
|
navi = json.dumps(self.navi)
|
||||||
|
|
||||||
|
@ -317,7 +318,7 @@ class SearchWindow(pyxbmct.AddonDialogWindow):
|
||||||
self.right_menu(mode if not right_menu else right_menu)
|
self.right_menu(mode if not right_menu else right_menu)
|
||||||
self.listing.reset()
|
self.listing.reset()
|
||||||
|
|
||||||
def set_focus(self, mode):
|
def set_focus(self, mode = None):
|
||||||
if not self.listing.size():
|
if not self.listing.size():
|
||||||
if mode and hasattr(self, "button_" + mode):
|
if mode and hasattr(self, "button_" + mode):
|
||||||
self.setFocus(getattr(self, "button_" + mode))
|
self.setFocus(getattr(self, "button_" + mode))
|
||||||
|
|
Loading…
Reference in New Issue