Is there a way to reload a menu? I don’t want to restart the plug-in.
Scenario:
I want to add a new source. After i add the source i want that source to show up in the menu.
Currently the only way i can get it to show up is if i press ESC and go back a menu and then go forward to where i was.
any ideas ?
Hi,
try adding a noCache=True option to the MediaContainer you need to be reloaded.
<br />
dir = MediaContainer(viewGroup='Details', title2=sender.itemTitle, noCache=True)<br />
this should work if there is an action that adds the source resulting in the container being redrawn. There is also a way to refresh the container periodically if you want to reload but not based on user action.
<br />
dir = MediaContainer(mediaType='video', autoRefresh=REFRESH_RATE ) <br />
where REFRESH_RATE is in seconds.
Jonny
Ahhhh.. That worked great. Thanks!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.