Properly displays mentions in splitheader-tabs even if 'enable highlighting on new message' is disabled

This commit is contained in:
apa420 2018-10-26 23:29:07 +02:00 committed by pajlada
parent f3235d036d
commit 7467e1d0e2

View file

@ -199,7 +199,8 @@ void NotebookTab::setLive(bool isLive)
void NotebookTab::setHighlightState(HighlightState newHighlightStyle)
{
if (this->isSelected() || !this->highlightEnabled_)
if (this->isSelected() || (!this->highlightEnabled_ &&
newHighlightStyle == HighlightState::NewMessage))
{
return;
}