╭ changed ──────────────╮ │src/ui/UserSettings.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │216 │ │217 evt.updateUser(io, allocator, users_dir, admin_repo, &user_id, email, current_password, new_password, new_password_again) catch |err| switch (err) {│ │218 // the account was removed under them │ │259 - error.NotFound => return self.logOut(), │ │219 + error.NotFound => return ui.UserNotifications.logOut(self.session), │ │220 else => { │ │221 const failure = ui.Session.FormFeedback.UserFailure.fromError(err) orelse return err; │ │222 const aa = self.session.arena.allocator(); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────╮ │229 self.session.haxy_moment = try evt.currentMoment(evt.admin_repo_opts, admin_repo);│ │230 try self.session.loadUser(); │ │231 try self.session.navigate(self.session.data.current_page); │ │272 - } │ │273 - │ │274 - fn headerActive(self: *View) bool { │ │275 - return self.box.getFocus().child_id == self.box.children.keys()[header_index]; │ │232 } │ │233 │ │234 fn formScroll(self: *View) *wgt.Scroll(ui.Widget) { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────╮ │251 return self.box.getFocus(); │ │252 } │ │253 │ │298 - // up leaves the view from the logout button │ │299 - pub fn atTop(self: *View) bool { │ │300 - return self.headerActive(); │ │254 + // up leaves the view from the first control │ │255 + pub fn atTop(self: *View, root_focus: *Focus) bool { │ │256 + return root_focus.grandchild_id == self.control_ids[0];│ │257 } │ │258 }; │ │259 │ ╰────────────────────────────────────────────────────────────────────╯