Skip to content

4.4.0 rc3 bug fix#3

Closed
jamesmisson wants to merge 2 commits into
release-4.4.0-rc3from
4.4.0-rc3-bug-fix
Closed

4.4.0 rc3 bug fix#3
jamesmisson wants to merge 2 commits into
release-4.4.0-rc3from
4.4.0-rc3-bug-fix

Conversation

@jamesmisson

Copy link
Copy Markdown
Owner

release-4.4.0-rc2 had a bug where the rendering of the choice button was out of sync with the loading of the manifest. In certain conditions, the manifest hadn't loaded before the UI was created, so it wasn't aware of the choice.

This cleans up some of the redundant condition checks that were causing this - one on the extension, and the other in createChoiceSwitch in the OpenseaDragonCenterPanel. Now, the only time that the presence of choice is checked, is in openPagesHandler, after the page has loaded, which makes the button visible or invisible. This is more in line with how other UI elements are rendered anyway.

@demiankatz demiankatz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This looks reasonable to me, @jamesmisson (though I confess I only took a quick look). I'd suggest closing this PR and opening a fresh one against the upstream repository's release-4.4.0 branch, however -- then after that is merged you can create the RC3 PR against it from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants