diff options
Diffstat (limited to 'Map/Presentation/Commands/MapCommands.swift')
| -rw-r--r-- | Map/Presentation/Commands/MapCommands.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Map/Presentation/Commands/MapCommands.swift b/Map/Presentation/Commands/MapCommands.swift index b992a42..c485023 100644 --- a/Map/Presentation/Commands/MapCommands.swift +++ b/Map/Presentation/Commands/MapCommands.swift @@ -58,7 +58,7 @@ struct MapCommands: Commands { Button("commands.file.export") { if let selectedEvolution, let document { if let image = document.exportAsImage(withEvolution: selectedEvolution) { - + // Capture image data to avoid sendability issues with NSImage guard let tiffData = image.tiffRepresentation else { return } @@ -155,7 +155,7 @@ struct MapCommands: Commands { savePanel.begin { result in if result == .OK { let bitmapImage = NSBitmapImageRep(data: tiffData) - + Task { @MainActor in guard let url = savePanel.url else { return } let selectedFormat = formats[accessoryController.formatPopup.indexOfSelectedItem] |