Skip to content

Commit

Permalink
[kinda hacky but] dismiss the import status view before showing the i…
Browse files Browse the repository at this point in the history
…mport files options
  • Loading branch information
proskd committed Nov 11, 2024
1 parent ab29bb1 commit f20bbb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PVUI/Sources/PVSwiftUI/RootView/PVMenuDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,14 @@ extension PVRootViewController: PVMenuDelegate {
documentPicker = UIDocumentPickerViewController(forOpeningContentTypes: utis, asCopy: true)
documentPicker.allowsMultipleSelection = true
documentPicker.delegate = self
self.dismiss(animated: true)
self.present(documentPicker, animated: true, completion: nil)
}))
#endif

#if canImport(PVWebServer)
let webServerAction = UIAlertAction(title: "Web Server", style: .default, handler: { _ in
self.dismiss(animated: true)
self.startWebServer()
})

Expand Down

0 comments on commit f20bbb3

Please sign in to comment.