fixes
parent
5e5a45aa22
commit
87fdda703d
|
@ -99,8 +99,7 @@ class SearchWindow(pyxbmct.AddonDialogWindow):
|
||||||
'last_query': None,
|
'last_query': None,
|
||||||
'last_link': None,
|
'last_link': None,
|
||||||
'last_filename': None,
|
'last_filename': None,
|
||||||
'route': [{'mode': 'close', 'params': {}, 'last_listing_item': 0},
|
'route': [{'mode': 'close', 'params': {}, 'last_listing_item': 0}]
|
||||||
{"last_listing_item": 0, "params": {}, "mode": "history"}]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def set_controls(self):
|
def set_controls(self):
|
||||||
|
@ -243,6 +242,7 @@ class SearchWindow(pyxbmct.AddonDialogWindow):
|
||||||
navi_file = os.path.join(__tmppath__, 'navi.txt')
|
navi_file = os.path.join(__tmppath__, 'navi.txt')
|
||||||
if not xbmcvfs.exists(navi_file):
|
if not xbmcvfs.exists(navi_file):
|
||||||
self.set_navi()
|
self.set_navi()
|
||||||
|
self.navi['route'].append({"last_listing_item": 0, "params": {}, "mode": "history"})
|
||||||
with open(xbmc.translatePath(navi_file), 'w') as f: f.write(json.dumps(self.navi))
|
with open(xbmc.translatePath(navi_file), 'w') as f: f.write(json.dumps(self.navi))
|
||||||
read = xbmcvfs.File(navi_file, 'r')
|
read = xbmcvfs.File(navi_file, 'r')
|
||||||
navi = read.read()
|
navi = read.read()
|
||||||
|
|
Loading…
Reference in New Issue