From 9a5533337f16d0d8940c16dc4c793888b7ffa701 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 12 Jun 2016 12:56:06 +0200 Subject: [PATCH] Warning on first run that Kodi will restart --- resources/language/English/strings.xml | 2 +- resources/language/German/strings.xml | 2 ++ resources/lib/entrypoint.py | 1 + resources/lib/initialsetup.py | 4 ++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index c03960ac..68fd1d9e 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -340,7 +340,7 @@ Comparing episodes from: Comparing: Failed to generate a new device Id. See your logs for more information. - A new device Id has been generated. Kodi will now restart. + Kodi will now restart to apply the changes. - Number of trailers to play before a movie diff --git a/resources/language/German/strings.xml b/resources/language/German/strings.xml index 5a57960b..17b6470f 100644 --- a/resources/language/German/strings.xml +++ b/resources/language/German/strings.xml @@ -279,6 +279,8 @@ Musikstücke Kanäle + Kodi wird jetzt neu gestartet um die Änderungen anzuwenden. + - Anzahl abzuspielender Trailer vor einem Film Audio Verstärkung (audio boost) wenn transkodiert wird diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 52459cd7..8c95f3e4 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -306,6 +306,7 @@ def resetDeviceId(): utils.logMsg(addonName, "Successfully removed old deviceId: %s New deviceId: %s" % (deviceId_old, deviceId), 1) + # "Kodi will now restart to apply the changes" dialog.ok( heading=addonName, line1=language(33033)) diff --git a/resources/lib/initialsetup.py b/resources/lib/initialsetup.py index b10d60f1..882b9e5d 100644 --- a/resources/lib/initialsetup.py +++ b/resources/lib/initialsetup.py @@ -495,6 +495,10 @@ class InitialSetup(): xbmc.executebuiltin( 'Addon.OpenSettings(plugin.video.plexkodiconnect)') else: + # "Kodi will now restart to apply the changes" + dialog.ok( + heading=self.addonName, + line1=string(33033)) xbmc.executebuiltin('RestartApp') # We should always restart to ensure e.g. Kodi settings for Music # are in use!