mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-19 12:41:54 -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:
1 parent
decd3c2678
commit
228ca55661
2 files changed
+5
-4
No files matched your search
@@ -645,7 +645,8 @@ struct OBSStudioAPI : obs_frontend_callbacks {
|
||||
void on_event(enum obs_frontend_event event) override
|
||||
{
|
||||
if (main->disableSaving &&
|
||||
event != OBS_FRONTEND_EVENT_SCENE_COLLECTION_CLEANUP)
|
||||
event != OBS_FRONTEND_EVENT_SCENE_COLLECTION_CLEANUP &&
|
||||
event != OBS_FRONTEND_EVENT_SCENE_COLLECTION_EXIT)
|
||||
return;
|
||||
|
||||
for (size_t i = callbacks.size(); i > 0; i--) {
|
||||
|
||||
Reference in new issue
Block a user