╭ changed ─────────╮ │src/ui/AuthTab.zig│ ╰──────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │51 } │ │52 │ │53 pub fn build(self: *View, allocator: std.mem.Allocator, constraint: layout.Constraint, root_focus: *Focus) !void {│ │54 - // update the displayed text based on session state. the inner Text │ │55 - // widget's content is just a slice, so we can repoint it without │ │56 - // re-allocating. │ │57 - if (self.text_box.box.children.values().len > 0) { │ │58 - const text_widget = &self.text_box.box.children.values()[0].widget.text; │ │59 - text_widget.content = self.text(); │ │60 - } │ │54 + try self.text_box.setContent(allocator, self.text()); │ │55 self.text_box.options.bottom_label = self.bottomLabel(); │ │56 try self.text_box.build(allocator, constraint, root_focus); │ │57 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────────╮ │src/ui/Settings.zig│ ╰───────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │74 if (self.session.data.user_id != null) { │ │75 const box = &self.authorized.child.box; │ │76 const button = &box.children.values()[0].widget.text_box; │ │77 - button.box.children.values()[0].widget.text.content = ansiLabel(self.session); │ │77 + try button.setContent(allocator, ansiLabel(self.session)); │ │78 try self.authorized.build(allocator, constraint, root_focus); │ │79 if (self.authorized.getGrid()) |inner_grid| { │ │80 try self.focus.addChild(allocator, self.authorized.getFocus(), inner_grid.size, 0, 0);│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯