From b6d1f32bfa70244e50c510bf62c81dc7f5127045 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 31 Dec 2024 12:42:09 +0100 Subject: Fix unable to get game (window title) name for some applications, fix notification config not respected when saving video in game directory --- src/Overlay.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/Overlay.cpp') diff --git a/src/Overlay.cpp b/src/Overlay.cpp index e897f5a..61fa9c5 100644 --- a/src/Overlay.cpp +++ b/src/Overlay.cpp @@ -1306,12 +1306,18 @@ namespace gsr { truncate_string(focused_window_name, 20); std::string text; switch(notification_type) { - case NotificationType::RECORD: + case NotificationType::RECORD: { + if(!config.record_config.show_video_saved_notifications) + return; text = "Saved recording to '" + focused_window_name + "/" + video_filename + "'"; break; - case NotificationType::REPLAY: + } + case NotificationType::REPLAY: { + if(!config.replay_config.show_replay_saved_notifications) + return; text = "Saved replay to '" + focused_window_name + "/" + video_filename + "'"; break; + } case NotificationType::NONE: case NotificationType::STREAM: break; -- cgit v1.2.3