gtk: properly check for amount of time elapsed before notifying about command finish (#9128)

This commit is contained in:
Jeffrey C. Ollie
2025-10-10 12:01:06 -05:00
committed by GitHub
parent 7767a45779
commit c28104e62f

View File

@@ -838,6 +838,8 @@ pub const Surface = extern struct {
if (cfg.@"notify-on-command-finish" == .unfocused and self.getFocused()) return true;
}
if (value.duration.lte(cfg.@"notify-on-command-finish-after")) return true;
const action = cfg.@"notify-on-command-finish-action";
if (action.bell) self.setBellRinging(true);