mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Fix the presentation of QuickLook when viewing logs on macOS. (#3556)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
//
|
||||
|
||||
import Combine
|
||||
import Foundation
|
||||
|
||||
struct BugReportFlowCoordinatorParameters {
|
||||
enum PresentationMode {
|
||||
@@ -93,12 +94,22 @@ class BugReportFlowCoordinator: FlowCoordinatorProtocol {
|
||||
|
||||
switch action {
|
||||
case .done:
|
||||
internalNavigationStackCoordinator?.pop()
|
||||
if ProcessInfo.processInfo.isiOSAppOnMac {
|
||||
internalNavigationStackCoordinator?.setSheetCoordinator(nil)
|
||||
} else {
|
||||
internalNavigationStackCoordinator?.pop()
|
||||
}
|
||||
}
|
||||
}
|
||||
.store(in: &cancellables)
|
||||
|
||||
internalNavigationStackCoordinator?.push(coordinator)
|
||||
if ProcessInfo.processInfo.isiOSAppOnMac {
|
||||
// On macOS the QuickLook is a separate window, closing a pushed QuickLook
|
||||
// controller closes the whole Settings sheet so lets add another one.
|
||||
internalNavigationStackCoordinator?.setSheetCoordinator(coordinator)
|
||||
} else {
|
||||
internalNavigationStackCoordinator?.push(coordinator)
|
||||
}
|
||||
}
|
||||
|
||||
private func dismiss() {
|
||||
|
||||
Reference in New Issue
Block a user