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.
This commit is contained in:
Matt Gajownik 2022-09-07 21:47:21 +10:00 committed by Jim
parent afeb78e022
commit 1aad58c0c4

View file

@ -4768,7 +4768,9 @@ void OBSBasic::closeEvent(QCloseEvent *event)
saveState().toBase64().constData());
#ifdef BROWSER_AVAILABLE
SaveExtraBrowserDocks();
if (cef)
SaveExtraBrowserDocks();
ClearExtraBrowserDocks();
#endif