From e5e5a79645b7e3163468b0ae73ad75fbeb88ab00 Mon Sep 17 00:00:00 2001 From: unknown <1310440+hemirt@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:04:35 +0200 Subject: [PATCH] do not higlight tabs that are marked as not highlight for new messages --- src/widgets/helper/NotebookTab.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/widgets/helper/NotebookTab.cpp b/src/widgets/helper/NotebookTab.cpp index ca14d384b..251b64af2 100644 --- a/src/widgets/helper/NotebookTab.cpp +++ b/src/widgets/helper/NotebookTab.cpp @@ -568,6 +568,12 @@ void NotebookTab::updateHighlightState(HighlightState newHighlightStyle, return; } + if (!this->highlightEnabled_ && + newHighlightStyle == HighlightState::NewMessage) + { + return; + } + // message is highlighting unvisible tab auto underlyingChannel = channelViewSource.underlyingChannel(); @@ -603,12 +609,6 @@ void NotebookTab::updateHighlightState(HighlightState newHighlightStyle, break; } - if (!this->highlightEnabled_ && - newHighlightStyle == HighlightState::NewMessage) - { - return; - } - if (this->highlightState_ == newHighlightStyle || this->highlightState_ == HighlightState::Highlighted) {