Restore presentation conditions of active profile

On iPad it's already loaded in MainView().
This commit is contained in:
Davide De Rosa 2022-04-23 10:04:10 +02:00
parent c507c739bd
commit dc66f514d9
1 changed files with 10 additions and 0 deletions

View File

@ -128,6 +128,16 @@ extension OrganizerView.ProfilesList {
}
private func presentActiveProfile() {
// do not present profile if:
//
// - an alert is active, as it would break navigation
// - on iPad, as it's already shown
//
guard alertType == nil, themeIdiom != .pad else {
return
}
guard isFirstLaunch, profileManager.hasActiveProfile else {
return
}