mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-17 07:16:12 +00:00
gtk: properly check for amount of time elapsed before notifying about command finish (#9128)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user