Warning on first run that Kodi will restart

This commit is contained in:
tomkat83 2016-06-12 12:56:06 +02:00
parent 7a266906cd
commit 9a5533337f
4 changed files with 8 additions and 1 deletions

View file

@ -340,7 +340,7 @@
<string id="33030">Comparing episodes from:</string>
<string id="33031">Comparing:</string>
<string id="33032">Failed to generate a new device Id. See your logs for more information.</string>
<string id="33033">A new device Id has been generated. Kodi will now restart.</string>
<string id="33033">Kodi will now restart to apply the changes.</string>
<!-- New to Plex -->
<string id="39000">- Number of trailers to play before a movie</string>

View file

@ -279,6 +279,8 @@
<string id="30311">Musikstücke</string>
<string id="30312">Kanäle</string>
<string id="33033">Kodi wird jetzt neu gestartet um die Änderungen anzuwenden.</string>
<!-- New to Plex -->
<string id="39000">- Anzahl abzuspielender Trailer vor einem Film</string>
<string id="39001">Audio Verstärkung (audio boost) wenn transkodiert wird</string>

View file

@ -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))

View file

@ -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!