mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
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:
parent
84613187e1
commit
b37605569f
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue