Make moderation mode persist (#2035)

Fixes a small bug introduced in #1964. "Moderation mode" would be written to the settings file but wouldn't be loaded.

Closes #2032
This commit is contained in:
Daniel 2020-10-10 04:04:55 -04:00 committed by GitHub
parent 84613187e1
commit b37605569f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,6 +76,7 @@ void SplitDescriptor::loadFromJSON(SplitDescriptor &descriptor,
{
descriptor.type_ = data.value("type").toString();
descriptor.server_ = data.value("server").toInt(-1);
descriptor.moderationMode_ = root.value("moderationMode").toBool();
if (data.contains("channel"))
{
descriptor.channelName_ = data.value("channel").toString();