Selaa lähdekoodia

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.
Richard Stanway 2 vuotta sitten
vanhempi
sitoutus
c1841e43b0
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 1 3
      UI/window-basic-main.cpp

+ 1 - 3
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",