mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
config: clarify comment
This commit is contained in:
@ -2222,9 +2222,16 @@ pub fn finalize(self: *Config) !void {
|
|||||||
// always the URL matcher.
|
// always the URL matcher.
|
||||||
if (!self.@"link-url") self.link.links.items = self.link.links.items[1..];
|
if (!self.@"link-url") self.link.links.items = self.link.links.items[1..];
|
||||||
|
|
||||||
|
// We warn when the quit-after-last-window-closed-delay is set to a very
|
||||||
|
// short value because it can cause Ghostty to quit before the first
|
||||||
|
// window is even shown.
|
||||||
if (self.@"quit-after-last-window-closed-delay") |duration| {
|
if (self.@"quit-after-last-window-closed-delay") |duration| {
|
||||||
if (duration.duration < 5 * std.time.ns_per_s)
|
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});
|
log.warn(
|
||||||
|
"quit-after-last-window-closed-delay is set to a very short value ({}), which might cause problems",
|
||||||
|
.{duration},
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user