Fix being unable to disable 'First Message' highlights (#3293)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -151,6 +151,7 @@ void HighlightModel::afterInit()
|
||||
|
||||
this->insertCustomRow(redeemedRow, 3);
|
||||
|
||||
// Highlight settings for first messages
|
||||
std::vector<QStandardItem *> firstMessageRow = this->createRow();
|
||||
setBoolItem(firstMessageRow[Column::Pattern],
|
||||
getSettings()->enableFirstMessageHighlight.getValue(), true,
|
||||
@@ -202,6 +203,11 @@ void HighlightModel::customRowSetData(const std::vector<QStandardItem *> &row,
|
||||
getSettings()->enableRedeemedHighlight.setValue(
|
||||
value.toBool());
|
||||
}
|
||||
else if (rowIndex == 4)
|
||||
{
|
||||
getSettings()->enableFirstMessageHighlight.setValue(
|
||||
value.toBool());
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user