From 0e533af21a3af8a17d29505ffc57b50cd5f6a560 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Fri, 2 Aug 2024 15:43:02 -0500 Subject: [PATCH] add a warning if quit delay too short --- src/config/Config.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config/Config.zig b/src/config/Config.zig index f99bcf9b3..a03a823bf 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -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