Reload current level after message dismissed

Hi,

 

I have a PopupMenuItem in my channel with either an "Add Favorite" or "Remove Favorite" option

depending on if the current video is already in the user's favorites list. I have disabled caching on

this screen so that it always fetches the current favorite status and displays the correct Add/Remove

option when entering the screen.

 

Assuming I'm looking at a new video, when I select the Add option it makes a network API call to add the current video to the user's list of favorites and then I return an

 

ObjectContainer(header="Success", message="Video added to Favorites")

 

which displays a message box on the screen. That all works OK, however, after the user closes the message box they are taken back to the underlying PopUpMenuItem which is still showing "Add Favorite" instead of "Remove Favorite" because the underlying PopUpMenuItem has not been reloaded.

 

Is there a way to force a reload of the current level after an ObjectContainer message has been dismissed?

 

Thanks,

 

Charlie

 

 

 

Not that I know of, this is something that's controlled at the Plex app level so there's nothing in the channel framework that can initiate a reload.

In my experience, the behaviour is app-specific as Gerk mentioned. Several of my channels make use of similar mechanisms and the degree to which they exhibit the desired behaviour depends on whether I test with PHT, Web, or iOS app.

Thanks, so it sounds like there is no way for me to refresh or update the current entry titles, the user would have to go back one level and re-enter the current screen to see the updated titles.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.