frontend: Fix wrong dock sizes at startup#13381
Open
Warchamp7 wants to merge 1 commit intoobsproject:masterfrom
Open
frontend: Fix wrong dock sizes at startup#13381Warchamp7 wants to merge 1 commit intoobsproject:masterfrom
Warchamp7 wants to merge 1 commit intoobsproject:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes docks being the wrong size during startup if OBS was maximized.
This appears to be some consequence of docks being added dynamically to the main window and restoring the window state when it was saved as maximized.
As such, this only seems to happen when you have the stats dock enabled or you have a browser dock. Closing OBS when it's maximized will result in the docks being different sizes next startup.
Appears to be https://qt-project.atlassian.net/browse/QTBUG-46620 and this PR implements a version of the fix noted in the comments there.
Motivation and Context
Fixes #13278
How Has This Been Tested?
Closed and opened OBS multiple times after setting the stats dock and some browser docks to various sizes and confirmed it was the same next launch.
Types of changes
Checklist: