From 6ceb987e7eec34ab3573d59b103e6404a0b1793c Mon Sep 17 00:00:00 2001 From: nerix Date: Sun, 10 Nov 2024 19:51:45 +0100 Subject: [PATCH] fix: update channel-view when pausing (#5707) --- CHANGELOG.md | 1 + src/widgets/helper/ChannelView.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca72b9ab9..8ca06e5d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,6 +71,7 @@ - Bugfix: Fixed 7TV emotes messing with Qt's HTML. (#5677) - Bugfix: Fixed incorrect messages getting replaced visually. (#5683) - Bugfix: Fixed rendering of multi-line selection that starts at a trailing space. (#5691) +- Bugfix: Fixed pause indicator not appearing in certain cases. (#5707) - Dev: Update Windows build from Qt 6.5.0 to Qt 6.7.1. (#5420) - Dev: Update vcpkg build Qt from 6.5.0 to 6.7.0, boost from 1.83.0 to 1.85.0, openssl from 3.1.3 to 3.3.0. (#5422) - Dev: Unsingletonize `ISoundController`. (#5462) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 22cb629c4..c7ee929c2 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -474,6 +474,8 @@ bool ChannelView::paused() const void ChannelView::pause(PauseReason reason, std::optional msecs) { + bool wasUnpaused = !this->paused(); + if (msecs) { /// Msecs has a value @@ -504,6 +506,11 @@ void ChannelView::pause(PauseReason reason, std::optional msecs) } this->updatePauses(); + + if (wasUnpaused) + { + this->update(); + } } void ChannelView::unpause(PauseReason reason)