diff --git a/PVUI/Sources/PVSwiftUI/RootView/PVMenuDelegate.swift b/PVUI/Sources/PVSwiftUI/RootView/PVMenuDelegate.swift index c1c718a1c9..4379642fe9 100644 --- a/PVUI/Sources/PVSwiftUI/RootView/PVMenuDelegate.swift +++ b/PVUI/Sources/PVSwiftUI/RootView/PVMenuDelegate.swift @@ -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() })