apprt/gtk: use configured title as fallback for closureComputedTitle

This commit is contained in:
tlj
2025-10-10 07:58:01 +02:00
committed by Mitchell Hashimoto
parent dbe42d9353
commit f0da093bdc

View File

@@ -389,8 +389,14 @@ pub const Tab = extern struct {
// the terminal title if it exists, otherwise a default string.
const plain = plain: {
const default = "Ghostty";
const config_title: ?[*:0]const u8 = title: {
const config = config_ orelse break :title null;
break :title config.get().title orelse null;
};
const plain = override_ orelse
terminal_ orelse
config_title orelse
break :plain default;
break :plain std.mem.span(plain);
};