<window>
	<defaultcontrol always="true">9</defaultcontrol>
	<allowoverlay>no</allowoverlay>
	<controls>
		<control type="button" id="9">
			<description>Trigger to Auto run the Latest media python after a 1 min delay if scan on startup is enabled</description>
			<onfocus>XBMC.AlarmClock(UpdateRecentAdded,XBMC.RunScript(special://skin/scripts/RecentlyAdded.py,limit=4),1,true)</onfocus>
			<onfocus>SetFocus(10)</onfocus>
			<texturenofocus>-</texturenofocus>
			<texturefocus>-</texturefocus>
			<visible>system.getbool(videolibrary.updateonstartup) + Skin.HasSetting(homepageRecentlyAdded)</visible>
		</control>
		<control type="button" id="9">
			<description>Don't run anything is scan on startup is Disabled and jump to the startup playlist</description>
			<onfocus>SetFocus(10)</onfocus>
			<texturenofocus>-</texturenofocus>
			<texturefocus>-</texturefocus>
			 <visible>!system.getbool(videolibrary.updateonstartup) | !Skin.HasSetting(homepageRecentlyAdded)</visible> 
		</control>

		<control type="button" id="10">
			<description>trigger</description>
			<onfocus>ReplaceWindow(Home)</onfocus>
			<texturenofocus>-</texturenofocus>
			<texturefocus>-</texturefocus>
			<visible>!Skin.HasSetting(Use_Startup_Playlist)</visible>
		</control>
		<control type="button" id="10">
			<description>trigger with startup Playlist</description>
			<onfocus>XBMC.PlayMedia($INFO[Skin.String(Startup_Playlist_Path)])</onfocus>
			<onfocus>ReplaceWindow(Home)</onfocus>
			<texturenofocus>-</texturenofocus>
			<texturefocus>-</texturefocus>
			<visible>Skin.HasSetting(Use_Startup_Playlist)</visible>
		</control>
		<include>CommonVideoBackground</include>
	</controls>
</window>