config: title can reload at runtime

Related to #2898
This commit is contained in:
Mitchell Hashimoto
2024-12-08 11:22:02 -08:00
parent ddf59e759d
commit 43a7dece02
2 changed files with 14 additions and 0 deletions

View File

@@ -1182,6 +1182,14 @@ pub fn updateConfig(
log.warn("failed to notify renderer of config change err={}", .{err});
};
// If we have a title set then we update our window to have the
// newly configured title.
if (config.title) |title| try self.rt_app.performAction(
.{ .surface = self },
.set_title,
.{ .title = title },
);
// Notify the window
try self.rt_app.performAction(
.{ .surface = self },