╭ changed ──────╮ │src/ui/Home.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │77 { │ │78 var settings_view = try Settings.View.init(allocator, &data.settings, session); │ │79 errdefer settings_view.deinit(allocator); │ │80 - try stack.children.put(allocator, settings_view.getFocus().id, .{ .settings = settings_view }); │ │80 + try stack.children.put(allocator, settings_view.getFocus().id, .{ .home_settings = settings_view });│ │81 } │ │82 │ │83 { │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │84 var auth_view = try Auth.View.init(allocator, &data.auth, session, users_tab_id); │ │85 errdefer auth_view.deinit(allocator); │ │86 - try stack.children.put(allocator, auth_view.getFocus().id, .{ .auth = auth_view }); │ │86 + try stack.children.put(allocator, auth_view.getFocus().id, .{ .home_auth = auth_view }); │ │87 } │ │88 │ │89 try box.children.put(allocator, stack.getFocus().id, .{ .widget = .{ .stack = stack }, .rect = null, .min_size = null });│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │113 self.session.data.current_page = switch (index) {│ │114 0 => .home_users, │ │115 1 => .home_repos, │ │116 - 2 => .settings, │ │117 - 3 => .auth, │ │116 + 2 => .home_settings, │ │117 + 3 => .home_auth, │ │118 else => .home_users, │ │119 }; │ │120 } │ ╰──────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────╮ │149 const at_top = switch (selected_widget.*) { │ │150 .home_users => |*v| v.getSelectedIndex() == 0, │ │151 .home_repos => |*v| v.getSelectedIndex() == 0, │ │152 - .settings => |*v| v.getSelectedIndex() == 0, │ │153 - .auth => |*v| v.getSelectedIndex() == 0, │ │152 + .home_settings => |*v| v.getSelectedIndex() == 0,│ │153 + .home_auth => |*v| v.getSelectedIndex() == 0, │ │154 else => false, │ │155 }; │ │156 if (at_top) { │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯