mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 05:44:43 +08:00
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:
@@ -4768,7 +4768,9 @@ void OBSBasic::closeEvent(QCloseEvent *event)
|
||||
saveState().toBase64().constData());
|
||||
|
||||
#ifdef BROWSER_AVAILABLE
|
||||
SaveExtraBrowserDocks();
|
||||
if (cef)
|
||||
SaveExtraBrowserDocks();
|
||||
|
||||
ClearExtraBrowserDocks();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user