gtk: properly check for amount of time elapsed before notifying about command finish (#9128)
parent
7767a45779
commit
c28104e62f
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue