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

Avoid infinite repaints upon hovering the folders/tags panels #719

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

guihkx
Copy link
Collaborator

@guihkx guihkx commented Oct 25, 2024

We were calling setStyleSheet() unconditionally inside the paint event handlers of the folders/tags panels, which would then trigger a new paint event, causing an infinite repaint recursion.

Now, we only call setStylesheet() if the stylesheet of a widget actually needs to be updated.

Fixes #689

We were calling setStyleSheet() unconditionally inside the paint event
handlers of the folders/tags panels, which would then trigger a new
paint event, causing an infinite repaint recursion.

Now, we only call setStylesheet() if the stylesheet of a widget actually
needs to be updated.
@nuttyartist
Copy link
Owner

Good catch @zjeffer, and thanks @guihkx for the fix!

@guihkx guihkx merged commit 9cb2616 into nuttyartist:master Oct 25, 2024
11 checks passed
@guihkx guihkx deleted the fix-repaint-recursion branch October 25, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

High CPU usage when hovering over folders & tags
3 participants