miglioria gestione changelog

This commit is contained in:
mac12m99
2021-02-28 20:43:31 +01:00
parent 20b942a479
commit 3042cdf6ea
3 changed files with 12 additions and 17 deletions

View File

@@ -22,8 +22,14 @@ def start():
logger.debug()
if not config.dev_mode():
from platformcode import updater
updater.showSavedChangelog()
try:
with open(config.changelogFile, 'r') as fileC:
changelog = fileC.read()
if changelog.strip():
platformtools.dialog_ok('Kodi on Demand', 'Aggiornamenti applicati:\n' + changelog)
os.remove(config.changelogFile)
except:
pass
def run(item=None):