From dcc8482d73d835ee50b37d48b463e24189fb9ea6 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Mon, 4 Feb 2019 13:23:12 -0600 Subject: [PATCH] added a disclaimer for breaking changes --- resources/language/resource.language.en_gb/strings.po | 4 ++++ resources/settings.xml | 1 + scheduler.py | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index 37ca0fc..2f45c8d 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -515,4 +515,8 @@ msgstr "" msgctxt "#30131" msgid "Choose Sets to Restore" +msgstr "" + +msgctxt "#30132" +msgid "Version 1.1.4 requires you to setup your file selections again - this is a breaking change" msgstr "" \ No newline at end of file diff --git a/resources/settings.xml b/resources/settings.xml index 5f9e1b2..350dd6c 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -4,6 +4,7 @@ + diff --git a/scheduler.py b/scheduler.py index 66b3e46..d6573c1 100644 --- a/scheduler.py +++ b/scheduler.py @@ -8,6 +8,8 @@ import resources.lib.utils as utils from resources.lib.croniter import croniter from resources.lib.backup import XbmcBackup +UPGRADE_INT = 1 #to keep track of any upgrade notifications + class BackupScheduler: monitor = None enabled = "false" @@ -53,6 +55,11 @@ class BackupScheduler: def start(self): + #display upgrade messages if they exist + if(int(utils.getSetting('upgrade_notes')) < UPGRADE_INT): + xbmcgui.Dialog().ok(utils.getString(30010),utils.getString(30132)) + utils.setSetting('upgrade_notes',str(UPGRADE_INT)) + #check if a backup should be resumed resumeRestore = self._resumeCheck()