Compare commits

..

2 commits

Author SHA1 Message Date
hemirt fb60b208b1
Merge e5e5a79645 into 2ec8fa8723 2024-10-22 08:04:52 +00:00
unknown e5e5a79645 do not higlight tabs that are marked as not highlight for new messages 2024-10-22 10:04:35 +02:00

View file

@ -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)
{