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 inconsistent behavior when using view shortcuts #2492

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

blabber
Copy link
Collaborator

@blabber blabber commented Jan 7, 2025

Closes #2491.

Calling `paintEvent(...)` on `top_bar_widget` instead of `QToolButton`
paints the blue border when the button is active.
Reported by clangd.
An `if`-statement was missing, that was present in the other
views. Unlike the over views, this condition checks `raise` to
differentiate between calls to `science_report_dialog_popup` triggered
by the user and the server. Without it, the Research View would be
closed, for example, when the research goal is changed.
@jwrober jwrober self-requested a review January 7, 2025 19:31
Copy link
Collaborator

@jwrober jwrober left a comment

Choose a reason for hiding this comment

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

Code works. However F12 (spaceship view) doesn't toggle back and forth either. Not part of the initial bug report.

@blabber
Copy link
Collaborator Author

blabber commented Jan 8, 2025

However F12 (spaceship view) doesn't toggle back and forth either.

Should work now.

@jwrober
Copy link
Collaborator

jwrober commented Jan 8, 2025

Wonderful! Thanks.

@jwrober jwrober merged commit 410b0f8 into longturn:master Jan 8, 2025
21 checks passed
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.

Inconsistent behavior when using view shortcuts
2 participants