How to make another plugin that was executed return to the original folder
#1
Question 
I want to launch another plugin in my plugin and make that another plugin's folder as sub folder of the folder triggering it in my plugin.
Code:
xbmc.executebuiltin('XBMC.ActivateWindow(videofiles,
plugin://plugin.video.anotherplugin,
return)')
was used to run another plugin when user clicks a folder in my plugin. It works.

But when user press BACKSPACE in the another plugin, xbmc will return to the top video folder, but not the folder in my plugin.

Is it possible to save the folder history and make the another plugin return to the original folder in my plugin but not the top folder of video?


Any suggestions or help will be appreciated. Thanks.Smile
Reply
#2
Try the Container.Update/Refresh built in functions instead.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
jmarshall Wrote:Try the Container.Update/Refresh built in functions instead.

I have tried it like this:
Code:
xbmc.executebuiltin('XBMC.Container.Refresh()')
xbmc.executebuiltin('XBMC.ActivateWindow(videofiles, plugin://another.plugin, return)')
#xbmc.sleep(1000);
xbmc.executebuiltin('Container.Update()')
The another plugin will flicker and return back to the original folder at once. I need to run the another plugin and back to the original folder when press BACKSPACE in another plugin.

Would you like to show me an example to use Container.Refresh()/Update here? Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
How to make another plugin that was executed return to the original folder0