summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stanway <r1ch@r1ch.net>2022-11-05 17:25:19 +0100
committerjp9000 <obs.jim@gmail.com>2022-11-05 11:07:13 -0700
commitc1841e43b04e662ae3be146ce10596eb7be866fa (patch)
tree4dd380e1cc0cc0c6755a961e29642af5faeb0638
parentaca48158820ef5d2e2672848ac2ca4682aa82e52 (diff)
UI: Fix always on top not being saved on exit28.1.2release/28.1
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.
-rw-r--r--UI/window-basic-main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp
index ed79fe6ab..3ba076bec 100644
--- a/UI/window-basic-main.cpp
+++ b/UI/window-basic-main.cpp
@@ -2701,12 +2701,10 @@ OBSBasic::~OBSBasic()
OBS_BETA_VER);
#endif
- bool alwaysOnTop = IsAlwaysOnTop(this);
-
config_set_bool(App()->GlobalConfig(), "BasicWindow", "PreviewEnabled",
previewEnabled);
config_set_bool(App()->GlobalConfig(), "BasicWindow", "AlwaysOnTop",
- alwaysOnTop);
+ ui->actionAlwaysOnTop->isChecked());
config_set_bool(App()->GlobalConfig(), "BasicWindow",
"SceneDuplicationMode", sceneDuplicationMode);
config_set_bool(App()->GlobalConfig(), "BasicWindow", "SwapScenesMode",