2017-05-18, 11:50
(2017-05-18, 01:00)mack4999 Wrote:(2017-05-18, 00:43)mack4999 Wrote:(2017-05-12, 13:46)kjb85 Wrote: I've been trying to work out what is causing the widgets not to reload on some builds.
The issue appears to be within Kodi's core.
There is a workaround built into Skin.Shortcuts which was designed to stop widgets loading from cache and it appears to work for this aswell but it doesn't seem to stick.
If you edit the script-skinshortcuts-includes.xml and replace all instances of
reload=$INFO[Window(Home).Property(widgetreload)]
with
trickToReload=$INFO[Window(Home).Property(widgetreload)]
This fixes the issue, problem is the file seems to be overwritten every so often back to the original code and I can't work out if it is the skin doing this or if it is skinshortcuts itself.
I think your right about the issue relating to cache. But I believe the issue is that were not loading from cache. Mine don't disappear anymore, I realized that my YouTube add-on was not functioning properly while loading widgets with this messed up YouTube I think it was crashing my other widgets. But I noticed now when I do the same task with YouTube disabled I notice the widgets always rebuild themselves when rly they should be loaded from cache. Either way it's a strange issue.
Ah, Nevermind. More investigation showed the issue still happens even with YouTube off. It does not disappear my first widget though. Maybe personall widget 1 is coded correctly but 2,3,4,5 may be missing something? Was there ever a bug you needed to fox Guilouz for widgets from the start? Maybe there is something missing from a bug fix you applied awhile ago
Code is the same for 5 personalized widgets. To avoid widget reloading, it's necessary to use template with Skin Shortcuts but I don't really understand how is working. I have try but no success. If someone is more experienced than me with this, let me sign.
https://github.com/BigNoid/script.skinsh...mplates.md