mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
29 lines
578 B
C++
29 lines
578 B
C++
|
#include "ModerationActions.hpp"
|
||
|
|
||
|
#include "Application.hpp"
|
||
|
#include "singletons/SettingsManager.hpp"
|
||
|
|
||
|
#include <QRegularExpression>
|
||
|
|
||
|
namespace chatterino {
|
||
|
|
||
|
ModerationActions::ModerationActions()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void ModerationActions::initialize()
|
||
|
{
|
||
|
assert(!this->initialized);
|
||
|
this->initialized = true;
|
||
|
|
||
|
for (auto &val : this->setting.getValue()) {
|
||
|
this->items.insertItem(val);
|
||
|
}
|
||
|
|
||
|
this->items.delayedItemsChanged.connect([this] { //
|
||
|
this->setting.setValue(this->items.getVector());
|
||
|
});
|
||
|
}
|
||
|
|
||
|
} // namespace chatterino
|