diff --git a/src/singletons/WindowManager.cpp b/src/singletons/WindowManager.cpp index ca797be17..e90e04e02 100644 --- a/src/singletons/WindowManager.cpp +++ b/src/singletons/WindowManager.cpp @@ -516,6 +516,7 @@ void WindowManager::encodeNodeRecusively(SplitNode *node, QJsonObject &obj) case SplitNode::_Split: { obj.insert("type", "split"); + obj.insert("moderationMode", node->getSplit()->getModerationMode()); QJsonObject split; encodeChannel(node->getSplit()->getIndirectChannel(), split); obj.insert("data", split); diff --git a/src/widgets/splits/SplitContainer.cpp b/src/widgets/splits/SplitContainer.cpp index 6b94dd838..507cd20e3 100644 --- a/src/widgets/splits/SplitContainer.cpp +++ b/src/widgets/splits/SplitContainer.cpp @@ -689,6 +689,7 @@ void SplitContainer::decodeNodeRecusively(QJsonObject &obj, Node *node) auto *split = new Split(this); split->setChannel( WindowManager::decodeChannel(obj.value("data").toObject())); + split->setModerationMode(obj.value("moderationMode").toBool(false)); this->appendSplit(split); } @@ -711,6 +712,8 @@ void SplitContainer::decodeNodeRecusively(QJsonObject &obj, Node *node) auto *split = new Split(this); split->setChannel(WindowManager::decodeChannel( _obj.value("data").toObject())); + split->setModerationMode( + _obj.value("moderationMode").toBool(false)); Node *_node = new Node(); _node->parent_ = node;