mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-09-15 08:50:57 +00:00
Fix unavail modifiable empty store (#686)
This commit is contained in:
parent
cd12e4c828
commit
7c7db56c1e
@ -43,7 +43,11 @@ struct StoreListView: View {
|
|||||||
// Do this to avoid a blip.
|
// Do this to avoid a blip.
|
||||||
SecretDetailView(secret: nextDefaultSecret)
|
SecretDetailView(secret: nextDefaultSecret)
|
||||||
} else {
|
} else {
|
||||||
EmptyStoreView(store: storeList.modifiableStore ?? storeList.stores.first)
|
if let modifiable = storeList.modifiableStore, modifiable.isAvailable {
|
||||||
|
EmptyStoreView(store: modifiable)
|
||||||
|
} else {
|
||||||
|
EmptyStoreView(store: storeList.stores.first(where: \.isAvailable))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationSplitViewStyle(.balanced)
|
.navigationSplitViewStyle(.balanced)
|
||||||
|
Loading…
Reference in New Issue
Block a user