2017-04-27, 15:05
I have a little trouble switching home menu layouts.
My menus are built with these commands in the usual places:
Layout 1
The menu content is then loaded as follows:
The other one does not use submenus:
When switching from the first layout to the second layout no menu is visible. Only manually triggering a rebuild makes it appear. When I change both layouts to use the same contents (so no submenus on both for example), it is also loaded correctly.
Is there a way to force a rebuild, or am I missing something here?
Unfortunately I cannot reproduce the problem 100%. I have run into it on multiple occasions while testing my new skin though. I just did again, but while writing this report I turned on Kodi's debug logging and poof the problem was gone.
So, apologies for not providing a debug log. I will upload one when I catch this again. Maybe some tips can help me locate the problem anyway.
My menus are built with these commands in the usual places:
Layout 1
PHP Code:
<onload condition="String.IsEqual(Skin.String(homemenu.type),stream)">RunScript(script.skinshortcuts,type=buildxml&mainmenuID=9000&group=mainmenu|optionsmenu)</onload>
<onload condition="String.IsEqual(Skin.String(homemenu.type),minimal)">RunScript(script.skinshortcuts,type=buildxml&mode=single&mainmenuID=9000&group=mainmenu|optionsmenu)</onload>
The menu content is then loaded as follows:
PHP Code:
<content>
<include>skinshortcuts-allmenus</include>
</content>
The other one does not use submenus:
PHP Code:
<content>
<include>skinshortcuts-mainmenu</include>
</content>
When switching from the first layout to the second layout no menu is visible. Only manually triggering a rebuild makes it appear. When I change both layouts to use the same contents (so no submenus on both for example), it is also loaded correctly.
Is there a way to force a rebuild, or am I missing something here?
Unfortunately I cannot reproduce the problem 100%. I have run into it on multiple occasions while testing my new skin though. I just did again, but while writing this report I turned on Kodi's debug logging and poof the problem was gone.
So, apologies for not providing a debug log. I will upload one when I catch this again. Maybe some tips can help me locate the problem anyway.