From 87fdda703d8b72d130fe0dbf3344fe748fb8adbd Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Fri, 13 Jan 2017 19:42:33 +0300 Subject: [PATCH] fixes --- searchwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/searchwindow.py b/searchwindow.py index a9a8c64..e3caecf 100644 --- a/searchwindow.py +++ b/searchwindow.py @@ -99,8 +99,7 @@ class SearchWindow(pyxbmct.AddonDialogWindow): 'last_query': None, 'last_link': None, 'last_filename': None, - 'route': [{'mode': 'close', 'params': {}, 'last_listing_item': 0}, - {"last_listing_item": 0, "params": {}, "mode": "history"}] + 'route': [{'mode': 'close', 'params': {}, 'last_listing_item': 0}] } def set_controls(self): @@ -243,6 +242,7 @@ class SearchWindow(pyxbmct.AddonDialogWindow): navi_file = os.path.join(__tmppath__, 'navi.txt') if not xbmcvfs.exists(navi_file): 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)) read = xbmcvfs.File(navi_file, 'r') navi = read.read()