From 1aad58c0c44ce59f0351eca6c60c66dd786efe3b Mon Sep 17 00:00:00 2001 From: Matt Gajownik Date: Wed, 7 Sep 2022 21:47:21 +1000 Subject: [PATCH] UI: Don't save/overwrite browser docks if CEF hasn't loaded OBS only populates the extraBrowserDocks list if `cef` is valid. By saving docks regardless of whether `cef` is valid, this can result in the user's custom docks being cleared unexpectedly. --- UI/window-basic-main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index f16254eb7..ae4acfe41 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -4768,7 +4768,9 @@ void OBSBasic::closeEvent(QCloseEvent *event) saveState().toBase64().constData()); #ifdef BROWSER_AVAILABLE - SaveExtraBrowserDocks(); + if (cef) + SaveExtraBrowserDocks(); + ClearExtraBrowserDocks(); #endif