UI: Add save notifications to status bar

This shows notifications in the status bar with the following:
- When screenshot is saved
- When replay buffer is saved
- When recording is saved
- When recording is auto remuxed
This commit is contained in:
Clayton Groeneveld 2021-02-04 06:01:35 -06:00 • committed by Jim
commit 448c7f38d0
7 changed files with 67 additions and 7 deletions

View file

@ -37,8 +37,17 @@ ScreenshotObj::~ScreenshotObj()
obs_leave_graphics();
obs_remove_tick_callback(ScreenshotTick, this);
if (th.joinable())
if (th.joinable()) {
th.join();
if (cx && cy) {
OBSBasic *main = OBSBasic::Get();
main->ShowStatusBarMessage(
QTStr("Basic.StatusBar.ScreenshotSavedTo")
.arg(QT_UTF8(path.c_str())));
}
}
}
void ScreenshotObj::Screenshot()