mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-19 05:51:16 -04:00
UI: Cleanup frontend event handling
This adds a function to OBSBasic to call on_event, so every time a event is called, the api variable doesn't have to be checked everytime.
This commit is contained in:
@@ -57,9 +57,7 @@ ScreenshotObj::~ScreenshotObj()
|
||||
|
||||
main->lastScreenshot = path;
|
||||
|
||||
if (main->api)
|
||||
main->api->on_event(
|
||||
OBS_FRONTEND_EVENT_SCREENSHOT_TAKEN);
|
||||
main->OnEvent(OBS_FRONTEND_EVENT_SCREENSHOT_TAKEN);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user