Nextcloud Login refactoring
This commit is contained in:
@@ -21,7 +21,7 @@ struct Nextcloud_Cookbook_iOS_ClientApp: App {
|
||||
EmptyView()
|
||||
} else {
|
||||
MainView()
|
||||
.modelContainer(for: Recipe.self)
|
||||
.modelContainer(for: [Recipe.self, GroceryItem.self, RecipeGroceries.self])
|
||||
}
|
||||
}
|
||||
.transition(.slide)
|
||||
@@ -30,6 +30,10 @@ struct Nextcloud_Cookbook_iOS_ClientApp: App {
|
||||
.init(identifier: language ==
|
||||
SupportedLanguage.DEVICE.rawValue ? (Locale.current.language.languageCode?.identifier ?? "en") : language)
|
||||
)
|
||||
.onAppear {
|
||||
AuthManager.shared.loadAuthString() // Load the auth string as soon as possible
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user