15.3.2021, 21:45
@RenEdi Zkusil jsem ty dva restarty, Kodi a celého boxu, upravit. Mělo by to po zadání vypsat notifikace "RESTART" a "RESTART Kodi". Tak to vyzkoušej.
Kód:
<control type="button" id="19">
<description>Kodi Restart button</description>
<width>510</width>
<height>60</height>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<textwidth>435</textwidth>
<textoffsetx>45</textoffsetx>
<texturefocus colordiffuse="$VAR[HighlightBarColor]" border="35,2,35,2">button_shutdown_focus.png</texturefocus>
<texturenofocus border="35,2,35,2">button_shutdown_nofocus.png</texturenofocus>
<onclick>Notification(RESTART,Kodi,2000)</onclick>
<onclick>dialog.close(all,true)</onclick>
<onclick>AlarmClock(Restart,RestartApp,00:01,silent)</onclick>
<visible>System.Platform.Linux | System.Platform.Windows</visible>
<font>font14</font>
<label>$LOCALIZE[13013] Kodi</label>
</control>
<control type="button" id="9">
<description>Reboot button</description>
<width>510</width>
<height>60</height>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<textwidth>435</textwidth>
<textoffsetx>45</textoffsetx>
<texturefocus colordiffuse="$VAR[HighlightBarColor]" border="35,2,35,2">button_shutdown_focus.png</texturefocus>
<texturenofocus border="35,2,35,2">button_shutdown_nofocus.png</texturenofocus>
<onclick>Notification(RESTART,,2000)</onclick>
<onclick>dialog.close(all,true)</onclick>
<onclick>AlarmClock(Restart,Reset(),00:01,silent)</onclick>
<visible>System.CanReboot</visible>
<font>font14</font>
<label>13013</label>
</control>