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: rerender when unpausing #5265

Merged
merged 3 commits into from
Mar 30, 2024
Merged

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Mar 25, 2024

When "double click to open links..." is on and a user (single) clicked in a channel, the indicator wouldn't disappear.
Even though we call queueLayout(), this might not cause a rerender. So this PR adds a update() to make sure a rerender is done if needed (= if visible).

While testing, I noticed some QTimer cannot have a negative interval logs, so I made sure the duration never gets negative.

Furthermore, I think double-clicking on a link shouldn't select it, it should only open. This would make it impossible to select links by double-clicking, but I can't really see a use-case for that.

Fixes #5088.

@pajlada pajlada enabled auto-merge (squash) March 30, 2024 10:31
@pajlada pajlada merged commit 09b2c53 into Chatterino:master Mar 30, 2024
17 checks passed
@Nerixyz Nerixyz deleted the fix/dc-link-pause branch March 30, 2024 11:17
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.

Double click link pause visually sticks around too long
2 participants