Skip to content

Commit f76c670

Browse files
committed
fix: SQLite file picker not opening — separate fileImporter from SSH key picker
1 parent 3dd01f1 commit f76c670

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

TableProMobile/TableProMobile/Views/ConnectionFormView.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,6 @@ struct ConnectionFormView: View {
228228
.disabled(!canSave)
229229
}
230230
}
231-
.fileImporter(
232-
isPresented: $showFilePicker,
233-
allowedContentTypes: sqliteContentTypes,
234-
allowsMultipleSelection: false
235-
) { result in
236-
handleFilePickerResult(result)
237-
}
238231
.fileImporter(
239232
isPresented: $showSSHKeyPicker,
240233
allowedContentTypes: [.data],
@@ -311,6 +304,13 @@ struct ConnectionFormView: View {
311304
Label("Create New Database", systemImage: "plus.circle")
312305
}
313306
}
307+
.fileImporter(
308+
isPresented: $showFilePicker,
309+
allowedContentTypes: sqliteContentTypes,
310+
allowsMultipleSelection: false
311+
) { result in
312+
handleFilePickerResult(result)
313+
}
314314
}
315315

316316
// MARK: - Server Section (MySQL, PostgreSQL, Redis)

0 commit comments

Comments
 (0)