05/29 Update functionalities
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user