mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-08 12:24:09 +00:00
UI: Move saving of scene tree grid mode
Widget shouldn't save their own states, as then they can't be used elsewhere.
This commit is contained in:
parent
20896280b1
commit
fc8c428521
|
@ -1,6 +1,4 @@
|
|||
#include "obs.hpp"
|
||||
#include "scene-tree.hpp"
|
||||
#include "obs-app.hpp"
|
||||
|
||||
#include <QSizePolicy>
|
||||
#include <QScrollBar>
|
||||
|
@ -18,7 +16,6 @@ SceneTree::SceneTree(QWidget *parent_) : QListWidget(parent_)
|
|||
|
||||
void SceneTree::SetGridMode(bool grid)
|
||||
{
|
||||
config_set_bool(App()->GlobalConfig(), "BasicWindow", "gridMode", grid);
|
||||
parent()->setProperty("gridMode", grid);
|
||||
gridMode = grid;
|
||||
|
||||
|
|
|
@ -5493,6 +5493,9 @@ void OBSBasic::GridActionClicked()
|
|||
ui->actionSceneGridMode->setChecked(true);
|
||||
else
|
||||
ui->actionSceneListMode->setChecked(true);
|
||||
|
||||
config_set_bool(App()->GlobalConfig(), "BasicWindow", "gridMode",
|
||||
gridMode);
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionAddScene_triggered()
|
||||
|
|
Loading…
Reference in a new issue