ronie Wrote:but maybe i've missed something?
i've obviously forgot a way to reset the 'NotStartup' boolean when you quit xbmc. this can by done by adding <onclick>Skin.Reset(NotStartup)</onclick>
to the appropriate buttons (exit/shutdown/restart/reboot) in DialogButtonMenu.xml.....but this won't work for users who bypass the shutdown menu by mapping these functions to their remote.
So, maybe it's better to use something like this instead:
[HTML]<onfocus>SetProperty(NotStartup,1)</onfocus>
<visible>IsEmpty(Window(Home).Property(NotStartup))</visible>[/HTML]
I'll have to do some more testing to check if this would work as expected.
edit:
the easiest way to clear the 'NotStartup' boolean, is doing it at startup.
add this to Startup.xml:
[HTML]
<defaultcontrol always="true">10</defaultcontrol>
....
<control type="button" id="10">
<onfocus>Skin.Reset(NotStartup)</onfocus>
<onfocus>ReplaceWindow(Home)</onfocus>
<texturenofocus>-</texturenofocus>
<texturefocus>-</texturefocus>
</control>
[/HTML]
i've updated the previous post to include this change.
CF2009 Wrote:Will this work if i use suspend as i do not shutdown my MC?
I can't think of any reason why it shouldn't, but there's only one way to find out. ;-)