Kartenimport, Metadaten und Versand absichern
This commit is contained in:
1 parent
be6bd49da5
commit
427b6fa7b0
18 files changed
+643
-193
No files matched your search
@@ -22,6 +22,10 @@ struct PreflightWindow: View {
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
}
|
||||
}
|
||||
.onChange(of: state.pendingUpload?.id, initial: true) { _, _ in
|
||||
skipSent = state.pendingUpload?.skipAlreadySent ?? true
|
||||
showOK = false
|
||||
}
|
||||
.frame(minWidth: 760, minHeight: 520)
|
||||
.background(LK.ground)
|
||||
}
|
||||
@@ -94,8 +98,8 @@ struct PreflightWindow: View {
|
||||
Rectangle().fill(LK.border).frame(height: 1)
|
||||
HStack(spacing: 10) {
|
||||
Button("Abbrechen") {
|
||||
state.pendingUpload = nil
|
||||
dismissWindow(id: "check")
|
||||
state.discardPendingUpload()
|
||||
if state.pendingUpload == nil { dismissWindow(id: "check") }
|
||||
}
|
||||
.buttonStyle(LKButtonStyle())
|
||||
.keyboardShortcut(.cancelAction)
|
||||
@@ -125,8 +129,10 @@ struct PreflightWindow: View {
|
||||
|
||||
private func send(_ items: [PhotoItem]) {
|
||||
state.confirmPendingUpload(items)
|
||||
state.openWindow("tasks")
|
||||
dismissWindow(id: "check")
|
||||
if state.pendingUpload == nil {
|
||||
state.openWindow("tasks")
|
||||
dismissWindow(id: "check")
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Row per photo
|
||||
|
||||
Reference in new issue
Block a user