mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
UI: Fix always on top not being saved on exit
By the time we reach this part of the code it's too late to be checking the window flags as the window has already been closed.
This commit is contained in:
parent
6bd4b854f7
commit
c9c20008da
@ -2701,12 +2701,10 @@ OBSBasic::~OBSBasic()
|
|||||||
OBS_BETA_VER);
|
OBS_BETA_VER);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool alwaysOnTop = IsAlwaysOnTop(this);
|
|
||||||
|
|
||||||
config_set_bool(App()->GlobalConfig(), "BasicWindow", "PreviewEnabled",
|
config_set_bool(App()->GlobalConfig(), "BasicWindow", "PreviewEnabled",
|
||||||
previewEnabled);
|
previewEnabled);
|
||||||
config_set_bool(App()->GlobalConfig(), "BasicWindow", "AlwaysOnTop",
|
config_set_bool(App()->GlobalConfig(), "BasicWindow", "AlwaysOnTop",
|
||||||
alwaysOnTop);
|
ui->actionAlwaysOnTop->isChecked());
|
||||||
config_set_bool(App()->GlobalConfig(), "BasicWindow",
|
config_set_bool(App()->GlobalConfig(), "BasicWindow",
|
||||||
"SceneDuplicationMode", sceneDuplicationMode);
|
"SceneDuplicationMode", sceneDuplicationMode);
|
||||||
config_set_bool(App()->GlobalConfig(), "BasicWindow", "SwapScenesMode",
|
config_set_bool(App()->GlobalConfig(), "BasicWindow", "SwapScenesMode",
|
||||||
|
Loading…
Reference in New Issue
Block a user