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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user