Ricerca Globale: fix ricerche salvate

This commit is contained in:
Alhaziel01
2020-12-10 19:50:30 +01:00
parent 531ba2d65b
commit f7feeb515c
2 changed files with 16 additions and 13 deletions

View File

@@ -100,7 +100,10 @@ class SearchWindow(xbmcgui.WindowXML):
if config.get_setting('last_search'): last_search = channeltools.get_channel_setting('Last_searched', 'search', '')
else: last_search = ''
if not self.item.text: self.item.text = platformtools.dialog_input(default=last_search, heading='')
if self.item.text: channeltools.set_channel_setting('Last_searched', self.item.text, 'search')
if self.item.text:
channeltools.set_channel_setting('Last_searched', self.item.text, 'search')
from specials.search import save_search
save_search(self.item.text)
def getActions(self):
logger.debug()

View File

@@ -11,21 +11,21 @@
<animation type="WindowClose" reversible="false">
<effect type="fade" start="100" end="0" time="100" />
</animation>
<right>440</right>
<top>320</top>
<right>490</right>
<top>300</top>
<height>40</height>
<width>400</width>
<width>300</width>
<control type="grouplist" id="20">
<orientation>vertical</orientation>
<height>80</height>
<height>120</height>
<itemgap>0</itemgap>
<align>center</align>
<control type="button" id="3012">
<label>$ADDON[plugin.video.kod 30045] $INFO[Window.Property(time)]</label>
<label>[B]$ADDON[plugin.video.kod 30045] $INFO[Window.Property(time)][/B]</label>
<onclick>SendClick(3012)</onclick>
<height>40</height>
<width>400</width>
<font>font30_title</font>
<height>60</height>
<width>300</width>
<!-- <font>font30_title</font> -->
<textoffsetx>20</textoffsetx>
<textcolor>FFFFFFFF</textcolor>
<aligny>center</aligny>
@@ -35,10 +35,10 @@
<pulseonselect>no</pulseonselect>
</control>
<control type="button" id="3013">
<label>$ADDON[plugin.video.kod 30046]</label>
<height>40</height>
<width>400</width>
<font>font30_title</font>
<label>[B]$ADDON[plugin.video.kod 30046][/B]</label>
<height>60</height>
<width>300</width>
<!-- <font>font30_title</font> -->
<textoffsetx>20</textoffsetx>
<textcolor>FFFFFFFF</textcolor>
<aligny>center</aligny>