2018-08-31, 10:34
Hi friends! Custom sleep timer does not show the remaining time.
These strings from my custom DialogButtinMenu.xml:
<control type="button" id="5">
<label>Sleep timer (30 min.)</label>
<include>Objects_ShutdownMenuButton</include>
<onclick>AlarmClock(shutdowntimer30,RunScript("/home/vis/scripts/kodi_sleep.py"),30)</onclick>
<visible>System.CanPowerDown | System.CanSuspend | System.CanHibernate</visible>
<visible>!System.HasAlarm(shutdowntimer30)</visible>
</control>
<control type="button" id="15">
<label><label>$LOCALIZE[31428] $INFO[System.Alarmpos]</label></label>
<include>Objects_ShutdownMenuButton</include>
<onclick>CancelAlarm(shutdowntimer30)</onclick>
<visible>System.HasAlarm(shutdowntimer30)</visible>
</control>
This is bug or feature?))
These strings from my custom DialogButtinMenu.xml:
<control type="button" id="5">
<label>Sleep timer (30 min.)</label>
<include>Objects_ShutdownMenuButton</include>
<onclick>AlarmClock(shutdowntimer30,RunScript("/home/vis/scripts/kodi_sleep.py"),30)</onclick>
<visible>System.CanPowerDown | System.CanSuspend | System.CanHibernate</visible>
<visible>!System.HasAlarm(shutdowntimer30)</visible>
</control>
<control type="button" id="15">
<label><label>$LOCALIZE[31428] $INFO[System.Alarmpos]</label></label>
<include>Objects_ShutdownMenuButton</include>
<onclick>CancelAlarm(shutdowntimer30)</onclick>
<visible>System.HasAlarm(shutdowntimer30)</visible>
</control>
This is bug or feature?))