aboutsummaryrefslogtreecommitdiff
path: root/src/Overlay.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-31 12:42:09 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-31 12:42:09 +0100
commitb6d1f32bfa70244e50c510bf62c81dc7f5127045 (patch)
treefb16d8ea1c148e9d7c70b7cbf9f284508928d1f5 /src/Overlay.cpp
parent6dfa330997f5802d709baa6403b9214fa3823454 (diff)
Fix unable to get game (window title) name for some applications, fix notification config not respected when saving video in game directory
Diffstat (limited to 'src/Overlay.cpp')
-rw-r--r--src/Overlay.cpp10
1 files changed, 8 insertions, 2 deletions
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;