mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
[Auth-Screen]: Fix: Anisette servers list wasn't ready before signin attempt causing "No valid Servers Found"
This commit is contained in:
@@ -31,6 +31,15 @@ final class AuthenticationViewController: UIViewController
|
||||
{
|
||||
super.viewDidLoad()
|
||||
|
||||
// fetch anisette servers asap when loading Auth Screen (if list is empty
|
||||
if(UserDefaults.standard.menuAnisetteServersList.isEmpty){
|
||||
Task{
|
||||
await AnisetteViewModel.getListOfServers(
|
||||
serverSource: UserDefaults.standard.menuAnisetteList
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
self.signInButton.activityIndicatorView.style = .medium
|
||||
self.signInButton.activityIndicatorView.color = .white
|
||||
|
||||
|
||||
Reference in New Issue
Block a user