mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
do not higlight tabs that are marked as not highlight for new messages
This commit is contained in:
parent
9b31f61de6
commit
e5e5a79645
1 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue