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 overhang on home not reshowing when returning from movie library view #1428

Closed
wants to merge 2 commits into from
Closed

Fix overhang on home not reshowing when returning from movie library view #1428

wants to merge 2 commits into from

Conversation

1hitsong
Copy link
Member

Changes

Calls OnScreenHidden() for movie library view.

Issues

Fixes #1427

@1hitsong 1hitsong requested a review from a team as a code owner October 22, 2023 22:54
@@ -87,7 +87,7 @@ sub popScene()

group.visible = false

if groupType = "JFScreen"
if LCase(groupType) = "jfscreen" or LCase(groupType) = "movielibraryview"
Copy link
Member

@cewert cewert Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MovieLibraryView.xml extends JFScreen and already has a OnScreenHidden() function so this code shouldn't be needed.

I can't reproduce your bug but I'm pretty sure I broke this in #1374 here. If you change the code back to isSubType() I bet it will work. I was trying to refactor because I thought they did the same thing but the functions work differently see here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The OnScreenHidden() wasn't getting called because grouptype is "MovieLibraryView" and not "JFScreen."

It's what you said, the difference between isSubType() and .subtype()

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should close this PR and revert those changes because they can have unentended consequences since it's not checking that the component is extending.

@1hitsong 1hitsong closed this Oct 24, 2023
@cewert cewert added the ignore-changelog Ignore this PR when auto generating release notes. label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-changelog Ignore this PR when auto generating release notes.
Projects
Development

Successfully merging this pull request may close these issues.

Overhang is missing from the home view when returning from movie library.
2 participants