2011-12-09, 23:45
pecinko Wrote:Yup, but what do you think would be a solution for a situation were user is switching from a skin that uses say 4 items to a skin using 8. Or, from a skin not using music items in WL script to a skin that uses all.
All I came up with would be to run it on home.xml load to make sure all info would be fetched?
The way I see it you either re-run it on home with definable parameters or make a background service but with fixed parameters. I may be missing something, though?
what i would do is to conditionally run the script in Home.xml only:
Quote:<onload condition="IsEmpty(Window(Home).Property(Quartz_Watchlist))">RunScript(script.watchlist,...)</onload>
<onload condition="IsEmpty(Window(Home).Property(Quartz_Watchlist))">SetProperty(Quartz_Watchlist,True)</onload>