Ricerca Globale: fix ricerche salvate
This commit is contained in:
@@ -100,7 +100,10 @@ class SearchWindow(xbmcgui.WindowXML):
|
|||||||
if config.get_setting('last_search'): last_search = channeltools.get_channel_setting('Last_searched', 'search', '')
|
if config.get_setting('last_search'): last_search = channeltools.get_channel_setting('Last_searched', 'search', '')
|
||||||
else: last_search = ''
|
else: last_search = ''
|
||||||
if not self.item.text: self.item.text = platformtools.dialog_input(default=last_search, heading='')
|
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):
|
def getActions(self):
|
||||||
logger.debug()
|
logger.debug()
|
||||||
|
|||||||
@@ -11,21 +11,21 @@
|
|||||||
<animation type="WindowClose" reversible="false">
|
<animation type="WindowClose" reversible="false">
|
||||||
<effect type="fade" start="100" end="0" time="100" />
|
<effect type="fade" start="100" end="0" time="100" />
|
||||||
</animation>
|
</animation>
|
||||||
<right>440</right>
|
<right>490</right>
|
||||||
<top>320</top>
|
<top>300</top>
|
||||||
<height>40</height>
|
<height>40</height>
|
||||||
<width>400</width>
|
<width>300</width>
|
||||||
<control type="grouplist" id="20">
|
<control type="grouplist" id="20">
|
||||||
<orientation>vertical</orientation>
|
<orientation>vertical</orientation>
|
||||||
<height>80</height>
|
<height>120</height>
|
||||||
<itemgap>0</itemgap>
|
<itemgap>0</itemgap>
|
||||||
<align>center</align>
|
<align>center</align>
|
||||||
<control type="button" id="3012">
|
<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>
|
<onclick>SendClick(3012)</onclick>
|
||||||
<height>40</height>
|
<height>60</height>
|
||||||
<width>400</width>
|
<width>300</width>
|
||||||
<font>font30_title</font>
|
<!-- <font>font30_title</font> -->
|
||||||
<textoffsetx>20</textoffsetx>
|
<textoffsetx>20</textoffsetx>
|
||||||
<textcolor>FFFFFFFF</textcolor>
|
<textcolor>FFFFFFFF</textcolor>
|
||||||
<aligny>center</aligny>
|
<aligny>center</aligny>
|
||||||
@@ -35,10 +35,10 @@
|
|||||||
<pulseonselect>no</pulseonselect>
|
<pulseonselect>no</pulseonselect>
|
||||||
</control>
|
</control>
|
||||||
<control type="button" id="3013">
|
<control type="button" id="3013">
|
||||||
<label>$ADDON[plugin.video.kod 30046]</label>
|
<label>[B]$ADDON[plugin.video.kod 30046][/B]</label>
|
||||||
<height>40</height>
|
<height>60</height>
|
||||||
<width>400</width>
|
<width>300</width>
|
||||||
<font>font30_title</font>
|
<!-- <font>font30_title</font> -->
|
||||||
<textoffsetx>20</textoffsetx>
|
<textoffsetx>20</textoffsetx>
|
||||||
<textcolor>FFFFFFFF</textcolor>
|
<textcolor>FFFFFFFF</textcolor>
|
||||||
<aligny>center</aligny>
|
<aligny>center</aligny>
|
||||||
|
|||||||
Reference in New Issue
Block a user