Ulteriori Impostazioni per ricerca Globale

This commit is contained in:
Alhaziel
2019-12-21 15:42:38 +01:00
parent e8131f6c3a
commit ed5903d8e8
3 changed files with 37 additions and 19 deletions

View File

@@ -270,9 +270,10 @@ def run(item=None):
# Special action for searching, first asks for the words then call the "search" function
elif item.action == "search":
logger.info("item.action=%s" % item.action.upper())
last_search = channeltools.get_channel_setting('Last_searched', 'search', '')
if channeltools.get_channel_setting('last_search', 'search'):
last_search = channeltools.get_channel_setting('Last_searched', 'search', '')
else:
last_search = ''
tecleado = platformtools.dialog_input(last_search)
if tecleado is not None:
channeltools.set_channel_setting('Last_searched', tecleado, 'search')