From f6d6e2c62da12b1cfb6916cb90a77bd45c4667c1 Mon Sep 17 00:00:00 2001 From: nerix Date: Thu, 28 Nov 2024 10:16:44 +0100 Subject: [PATCH] perf: don't force-layout in `setChannel` (#5737) * perf: don't force-layout in `setChannel` * chore: add changelog entry --------- Co-authored-by: pajlada --- CHANGELOG.md | 1 + src/widgets/helper/ChannelView.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a56a18c0..48ba71b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -138,6 +138,7 @@ - Dev: 7TV's `entitlement.reset` is now explicitly ignored. (#5685) - Dev: Qt 6.8 and later now default to the GDI fontengine. (#5710) - Dev: Moved to condition variables when shutting down worker threads. (#5721, #5733) +- Dev: Reduced layouts in channel views when setting a channel. (#5737) ## 2.5.1 diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index c7ee929c..6873f2cb 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -1073,7 +1073,7 @@ void ChannelView::setChannel(const ChannelPtr &underlyingChannel) this->updateID(); - this->performLayout(); + this->queueLayout(); this->queueUpdate(); // Notifications