05/29 Update functionalities

This commit is contained in:
Nguyen Ngo
2026-05-29 17:06:04 -04:00
parent 7d05c3862d
commit e4261778c8
5 changed files with 74 additions and 28 deletions
+7
View File
@@ -139,6 +139,13 @@ struct LoginView: View {
.padding(.horizontal, 32)
}
}
// Re-read the persisted server selection each time the login screen
// appears. Without this, the picker shows a stale value when the user
// switched server in Settings and was logged out because @State is
// initialised once and never refreshed by UserDefaults changes.
.onAppear {
selectedServer = ServerConfig.selectedOption
}
}
private func signIn() async {