Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] boolean condition window.is does not work properly #13346

Merged
merged 1 commit into from Jan 11, 2018

Conversation

xhaggi
Copy link
Member

@xhaggi xhaggi commented Jan 10, 2018

The boolean condition Window.Is does not work properly because the contextual window is not always set. This will try to fix the issue by introducing a fallback. Now we'll first lookup for the contextual window, than the top most dialog and as a last the top most window.

The same is done in CGUIInfoManager::GetWindowWithCondition(int contextWindow, int condition) where pass in the contextual window too.

Runtime tested on MacOS.

Related forum thread https://forum.kodi.tv/showthread.php?tid=307923

The boolean condition Window.Is does not work properly because the contextual window is not always set. This will try to fix the issue by introducing a fallback. Now we'll first lookup for the contextual window, than the top most dialog and as a last the top most window.
@xhaggi xhaggi added Type: Fix non-breaking change which fixes an issue Component: GUI engine v18 Leia labels Jan 10, 2018
@xhaggi
Copy link
Member Author

xhaggi commented Jan 10, 2018

@ronie it would be nice if you take a look and verify if it works for Estuary.

@ronie
Copy link
Member

ronie commented Jan 10, 2018

tested and works fine as far as i can tell

@xhaggi
Copy link
Member Author

xhaggi commented Jan 10, 2018

Ok thanks for your feedback.

@xhaggi xhaggi merged commit 3faae1e into xbmc:master Jan 11, 2018
@Rechi Rechi added this to the L 18.0-alpha1 milestone Jan 11, 2018
@xhaggi xhaggi deleted the fix-window-is-condition branch February 4, 2018 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants