╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ──────────╮ │src/ui/Settings.zig│ ╰───────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │25 const logged_in_index: usize = 0; │ │26 const logged_out_index: usize = 1; │ │27 │ │29 - pub fn init(allocator: std.mem.Allocator, data: *const Self, session: *ui.Session) !View {│ │28 + pub fn init(allocator: std.mem.Allocator, session: *ui.Session) !View { │ │29 var stack = try wgt.Stack(ui.Widget).init(allocator); │ │30 errdefer stack.deinit(allocator); │ │31 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │75 } │ │76 │ │77 return .{ │ │79 - .center = try ui.Center.init(allocator, .{ .stack = stack }, .both),│ │80 - .data = data, │ │78 + .center = try ui.Center.init(allocator, .{ .stack = stack }), │ │79 .session = session, │ │80 .button_id = button_id, │ │81 }; │ ╰────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────────╮ │src/ui/SubTitle.zig│ ╰───────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │20 │ │21 pub const View = struct { │ │22 text_box: wgt.TextBox(ui.Widget), │ │23 - data: *const Self, │ │23 │ │24 pub fn init(allocator: std.mem.Allocator, data: *const Self) !View { │ │25 var text_box = try wgt.TextBox(ui.Widget).init(allocator, data.content, .{ .border_style = null, .wrap_kind = .none });│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────╮ │26 errdefer text_box.deinit(allocator); │ │28 - return .{ .text_box = text_box, .data = data }; │ │27 + return .{ .text_box = text_box }; │ │28 } │ │29 │ │30 pub fn deinit(self: *View, allocator: std.mem.Allocator) void {│ ╰───────────────────────────────────────────────────────────────────────╯ ╭ changed ───────╮ │src/ui/Title.zig│ ╰────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │20 │ │21 pub const View = struct { │ │22 text_box: wgt.TextBox(ui.Widget), │ │23 - data: *const Self, │ │23 │ │24 pub fn init(allocator: std.mem.Allocator, data: *const Self) !View { │ │25 var text_box = try wgt.TextBox(ui.Widget).init(allocator, data.content, .{ .border_style = null, .wrap_kind = .none });│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────╮ │26 errdefer text_box.deinit(allocator); │ │28 - return .{ .text_box = text_box, .data = data }; │ │27 + return .{ .text_box = text_box }; │ │28 } │ │29 │ │30 pub fn deinit(self: *View, allocator: std.mem.Allocator) void {│ ╰───────────────────────────────────────────────────────────────────────╯ ╭ changed ──────╮ │src/ui/User.zig│ ╰───────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │155 } │ │156 │ │157 { │ │158 - var settings_view = try Settings.View.init(allocator, &data.settings, session); │ │158 + var settings_view = try Settings.View.init(allocator, session); │ │159 errdefer settings_view.deinit(allocator); │ │160 try stack.children.put(allocator, settings_view.getFocus().id, .{ .home_settings = settings_view });│ │161 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │167 } │ │168 │ │169 if (session.is_terminal) { │ │170 - var quit_view = try Quit.View.init(allocator, &data.quit, session); │ │170 + var quit_view = try Quit.View.init(allocator, session); │ │171 errdefer quit_view.deinit(allocator); │ │172 try stack.children.put(allocator, quit_view.getFocus().id, .{ .quit = quit_view });│ │173 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────────╮ │src/ui/User/Header.zig│ ╰──────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │127 // auth tab (login / logout). AuthTab defaults to the global ai:/auth │ │128 // link; repoint its instance at this user's auth route so it stays local. │ │129 { │ │130 - var auth_tab = try AuthTab.View.init(allocator, &data.auth_tab, session);│ │130 + var auth_tab = try AuthTab.View.init(allocator, session); │ │131 errdefer auth_tab.deinit(allocator); │ │132 auth_tab.text_box.getFocus().kind = .{ .custom = auth_link }; │ │133 try tab_ids.put(allocator, auth_tab.getFocus().id, {}); │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯