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

pull/9129/head
Jeffrey C. Ollie 2025-10-10 12:01:06 -05:00 committed by GitHub
parent 7767a45779
commit c28104e62f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

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);