mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00: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:
parent
afeb78e022
commit
1aad58c0c4
|
@ -4768,7 +4768,9 @@ void OBSBasic::closeEvent(QCloseEvent *event)
|
|||
saveState().toBase64().constData());
|
||||
|
||||
#ifdef BROWSER_AVAILABLE
|
||||
SaveExtraBrowserDocks();
|
||||
if (cef)
|
||||
SaveExtraBrowserDocks();
|
||||
|
||||
ClearExtraBrowserDocks();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue