Only show 'saving replay, this might take some time' if notifications are enabled

This commit is contained in:
dec05eba
2025-11-12 23:22:33 +01:00
parent 2506750243
commit a9a1f9d01c
2 changed files with 3 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ namespace gsr {
perror("gsr-global-hotkeys");
_exit(127);
return true;
return false;
} else { // Parent
return true;
}

View File

@@ -2024,7 +2024,8 @@ namespace gsr {
void Overlay::process_gsr_output() {
if(replay_save_show_notification && replay_save_clock.get_elapsed_time_seconds() >= replay_saving_notification_timeout_seconds) {
replay_save_show_notification = false;
show_notification("Saving replay, this might take some time", notification_timeout_seconds, mgl::Color(255, 255, 255), get_color_theme().tint_color, NotificationType::REPLAY);
if(config.replay_config.record_options.show_notifications)
show_notification("Saving replay, this might take some time", notification_timeout_seconds, mgl::Color(255, 255, 255), get_color_theme().tint_color, NotificationType::REPLAY);
}
if(gpu_screen_recorder_process_output_file) {