╭ changed ─────────╮ │src/ui/AuthTab.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │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 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯