fix pulsante "configura aggiornamento videoteca" e apertura menu segnalazione in caso di errori
This commit is contained in:
@@ -332,7 +332,7 @@ def run(item=None):
|
||||
platformtools.dialog_ok(config.get_localized_string(60087) % Channel, config.get_localized_string(60014))
|
||||
else:
|
||||
if platformtools.dialog_yesno(config.get_localized_string(60038), config.get_localized_string(60015)):
|
||||
run(Item(channel="setting", action="report_menu"))
|
||||
platformtools.itemlist_update(Item(channel="setting", action="report_menu"), True)
|
||||
finally:
|
||||
# db need to be closed when not used, it will cause freezes
|
||||
from core import db
|
||||
|
||||
@@ -201,14 +201,14 @@ def configure_update_videolibrary(item):
|
||||
|
||||
# Select Dialog
|
||||
ret = platformtools.dialog_multiselect(config.get_localized_string(60601), lista, preselect=preselect, useDetails=True)
|
||||
if ret < 0:
|
||||
if ret is None:
|
||||
return False # order cancel
|
||||
seleccionados = [ids[i] for i in ret]
|
||||
selection = [ids[i] for i in ret]
|
||||
|
||||
for tvshow in ids:
|
||||
if tvshow not in seleccionados:
|
||||
if tvshow not in selection:
|
||||
tvshow.active = 0
|
||||
elif tvshow in seleccionados:
|
||||
elif tvshow in selection:
|
||||
tvshow.active = 1
|
||||
mark_tvshow_as_updatable(tvshow, silent=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user