╭ changed ──────╮ │src/ui/Repo.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │274 try stack.children.put(allocator, issues_view.getFocus().id, .{ .repo_issues = issues_view }); │ │275 } │ │276 │ │277 - { │ │277 + // the header only shows the settings tab with a login and the auth │ │278 + // tab outside local mode, so keep the stack's children 1:1 with │ │279 + // the tabs by skipping the same views. │ │280 + if (session.data.user_id != null) { │ │281 var settings_view = try Settings.View.init(allocator, session); │ │282 errdefer settings_view.deinit(allocator); │ │283 try stack.children.put(allocator, settings_view.getFocus().id, .{ .home_settings = settings_view });│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────╮ │284 } │ │285 │ │283 - // the header has no auth tab in local mode, so keep the stack's │ │284 - // children 1:1 with the tabs by skipping the auth view too. │ │286 if (!session.data.is_local) { │ │287 var auth_view = try Auth.View.init(allocator, &data.auth, session);│ │288 errdefer auth_view.deinit(allocator); │ ╰────────────────────────────────────────────────────────────────────────────────────────╯