Skip to content

Commit f8f160e

Browse files
committed
Fix import/export planet error pop up
1 parent 7a82cdf commit f8f160e

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

Planet/Views/PlanetMainView.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ struct PlanetMainView: View {
4646
title: "Failed to Import Planet",
4747
message: "The planet already exists."
4848
)
49+
return
4950
} catch {
5051
// use general alert
5152
}
@@ -79,7 +80,15 @@ struct PlanetMainView: View {
7980
try planet.export(exportDirectory: url)
8081
return
8182
} catch PlanetError.FileExistsError {
82-
PlanetManager.shared.alert(title: "Failed to Export Planet", message: "Please choose another path.")
83+
PlanetManager.shared.alert(
84+
title: "Failed to Export Planet",
85+
message: """
86+
There is already an exported Planet in the destination. \
87+
We do not recommend override your backup. \
88+
Please choose another destination, or rename your previous backup.
89+
"""
90+
)
91+
return
8392
} catch {
8493
// use general alert
8594
}

Planet/versioning.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CURRENT_PROJECT_VERSION = 340
1+
CURRENT_PROJECT_VERSION = 341

0 commit comments

Comments
 (0)