mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
obs-frontend-api: Add screenshot event
This adds a frontend event for when a screenshot is taken.
This commit is contained in:
@@ -53,6 +53,10 @@ ScreenshotObj::~ScreenshotObj()
|
||||
main->ShowStatusBarMessage(
|
||||
QTStr("Basic.StatusBar.ScreenshotSavedTo")
|
||||
.arg(QT_UTF8(path.c_str())));
|
||||
|
||||
if (main->api)
|
||||
main->api->on_event(
|
||||
OBS_FRONTEND_EVENT_SCREENSHOT_TAKEN);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user