From c9c20008daef802e3f912598d3ebb1b6384ed783 Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Sat, 5 Nov 2022 17:25:19 +0100 Subject: [PATCH] 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. --- UI/window-basic-main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index af9e26d42..c6fdd239c 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",