mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
add a warning if quit delay too short
This commit is contained in:
@ -2205,6 +2205,11 @@ pub fn finalize(self: *Config) !void {
|
||||
// If URLs are disabled, cut off the first link. The first link is
|
||||
// always the URL matcher.
|
||||
if (!self.@"link-url") self.link.links.items = self.link.links.items[1..];
|
||||
|
||||
if (self.@"quit-after-last-window-closed-delay") |duration| {
|
||||
if (duration.duration < 5 * std.time.ns_per_s)
|
||||
log.warn("quit-after-last-window-closed-delay is set to a very short value ({}), which might cause problems", .{duration});
|
||||
}
|
||||
}
|
||||
|
||||
/// Callback for src/cli/args.zig to allow us to handle special cases
|
||||
|
Reference in New Issue
Block a user