obs-frontend-api: Add scripting shutdown event
This event is for when scripts need to know when OBS is exiting. Currently scripts are destroyed before the current exit event.
This commit is contained in:
parent
a65287d615
commit
8d349ea4aa
3 changed files with 8 additions and 0 deletions
|
|
@ -4590,6 +4590,9 @@ void OBSBasic::closeEvent(QCloseEvent *event)
|
|||
ClearExtraBrowserDocks();
|
||||
#endif
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_SCRIPTING_SHUTDOWN);
|
||||
|
||||
disableSaving++;
|
||||
|
||||
/* Clear all scene data (dialogs, widgets, widget sub-items, scenes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue