ios: allow export of unencrypted database (#1097)

This commit is contained in:
Evgeny Poberezkin
2022-09-22 13:10:25 +01:00
committed by GitHub
parent 06c7b9a995
commit bd2a748169
@@ -100,7 +100,7 @@ struct DatabaseView: View {
}
settingsRow("square.and.arrow.up") {
Button("Export database") {
if initialRandomDBPassphraseGroupDefault.get() {
if initialRandomDBPassphraseGroupDefault.get() && !unencrypted {
alert = .exportProhibited
} else {
exportArchive()