mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
obs-frontend-api: Add functions to get last saved files
Adds functions to the frontend api to get the last recording, screenshot and replay buffer saved.
This commit is contained in:
@@ -54,6 +54,8 @@ ScreenshotObj::~ScreenshotObj()
|
||||
QTStr("Basic.StatusBar.ScreenshotSavedTo")
|
||||
.arg(QT_UTF8(path.c_str())));
|
||||
|
||||
main->lastScreenshot = path;
|
||||
|
||||
if (main->api)
|
||||
main->api->on_event(
|
||||
OBS_FRONTEND_EVENT_SCREENSHOT_TAKEN);
|
||||
|
||||
Reference in New Issue
Block a user