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

Simplify settings properties definitions #591

Merged
merged 2 commits into from
Jan 25, 2025
Merged

Conversation

equeim
Copy link
Owner

@equeim equeim commented Jan 24, 2025

No description provided.

@equeim equeim force-pushed the settings-simplification branch from cfd106c to 737efee Compare January 24, 2025 22:13
If we call restoreGeometry() after main loop iteration,
it might happen in the middle of creation of native window and be ignored.
So call synchronously in constructor instead.

The reason why we were doing it like that in the first place
is because in Impl constructor the MainWindow::mImpl member is still uninitialized,
and we use in MainWindow::event override, which may be called from restoreGeometry().
Instead use QMetaObject::invokeMethod in that override so that Impl::updateShowHideAction
is called on the next iterator of event loop (this is what we should be doing anyway).
@equeim equeim force-pushed the settings-simplification branch from 737efee to 4f53ea6 Compare January 25, 2025 01:17
@equeim equeim merged commit 3cc0875 into master Jan 25, 2025
0 of 21 checks passed
@equeim equeim deleted the settings-simplification branch January 25, 2025 01:18
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.

1 participant