mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fixed issue with Excluded users not saving from the highlights tab (#624)
This commit is contained in:
parent
e51c5c692a
commit
f33cc884b2
|
@ -24,6 +24,13 @@ void HighlightController::initialize(Application &app)
|
||||||
this->phrases.delayedItemsChanged.connect([this] { //
|
this->phrases.delayedItemsChanged.connect([this] { //
|
||||||
this->highlightsSetting_.setValue(this->phrases.getVector());
|
this->highlightsSetting_.setValue(this->phrases.getVector());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
for (const HighlightBlacklistUser &blacklistedUser : this->blacklistSetting_.getValue()) {
|
||||||
|
this->blacklistedUsers.appendItem(blacklistedUser);
|
||||||
|
}
|
||||||
|
|
||||||
|
this->blacklistedUsers.delayedItemsChanged.connect(
|
||||||
|
[this] { this->blacklistSetting_.setValue(this->blacklistedUsers.getVector()); });
|
||||||
}
|
}
|
||||||
|
|
||||||
HighlightModel *HighlightController::createModel(QObject *parent)
|
HighlightModel *HighlightController::createModel(QObject *parent)
|
||||||
|
|
|
@ -39,7 +39,8 @@ private:
|
||||||
|
|
||||||
ChatterinoSetting<std::vector<HighlightPhrase>> highlightsSetting_ = {
|
ChatterinoSetting<std::vector<HighlightPhrase>> highlightsSetting_ = {
|
||||||
"/highlighting/highlights"};
|
"/highlighting/highlights"};
|
||||||
ChatterinoSetting<std::vector<HighlightPhrase>> blacklistSetting_ = {"/highlighting/blacklist"};
|
ChatterinoSetting<std::vector<HighlightBlacklistUser>> blacklistSetting_ = {
|
||||||
|
"/highlighting/blacklist"};
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace chatterino
|
} // namespace chatterino
|
||||||
|
|
Loading…
Reference in a new issue