Make display message time a setting

To review later, as maybe a server setting should be implemented
instead.
This commit is contained in:
angelblue05 2016-10-20 19:13:40 -05:00
parent 6c44df1ce4
commit 0ed6c8e2b0
3 changed files with 3 additions and 1 deletions

View file

@ -233,6 +233,7 @@
<string id="30544">Enable database locked fix (will slow syncing process)</string>
<string id="30545">Enable server offline message</string>
<string id="30546">Enable analytic metric logging</string>
<string id="30547">Display message (in seconds)</string>
<!-- dialogs -->
<string id="30600">Sign in with Emby Connect</string>

View file

@ -234,7 +234,7 @@ class WebSocketClient(threading.Thread):
heading=header,
message=text,
icon="{emby}",
time=7000)
time=int(settings('displayMessage'))*1000)
elif command == 'SendString':

View file

@ -69,6 +69,7 @@
<setting id="connectMsg" type="bool" label="30249" default="true" />
<setting id="offlinetMsg" type="bool" label="30545" default="true" />
<setting id="restartMsg" type="bool" label="30530" default="false" />
<setting id="displayMessage" type="slider" label="30547" default="4" range="4,1,20" option="int" />
<setting id="newContent" type="bool" label="30531" default="false" />
<setting id="newvideotime" type="number" label="30532" visible="eq(-1,true)" default="5" option="int" subsetting="true" />
<setting id="newmusictime" type="number" label="30533" visible="eq(-2,true)" default="2" option="int" subsetting="true" />