2018-06-28 19:38:57 +02:00
|
|
|
#include "ModerationActions.hpp"
|
|
|
|
|
|
|
|
#include "Application.hpp"
|
2018-06-28 19:46:45 +02:00
|
|
|
#include "singletons/Settings.hpp"
|
2018-06-28 19:38:57 +02:00
|
|
|
|
|
|
|
#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
|