mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-28 08:06:20 -04:00
UI: Fix frontend API cleanup/exit event order
Makes it so that the exit event is always called regardless of save state, and that exit is always called after cleanup rather than before.
This commit is contained in:
@@ -4542,15 +4542,15 @@ void OBSBasic::closeEvent(QCloseEvent *event)
|
||||
ClearExtraBrowserDocks();
|
||||
#endif
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_EXIT);
|
||||
|
||||
disableSaving++;
|
||||
|
||||
/* Clear all scene data (dialogs, widgets, widget sub-items, scenes,
|
||||
* sources, etc) so that all references are released before shutdown */
|
||||
ClearSceneData();
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_EXIT);
|
||||
|
||||
App()->quit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user