From c338a16d54bdb20198143b5608d797af9e35c1ea Mon Sep 17 00:00:00 2001 From: Jakob Hellermann Date: Thu, 6 Aug 2026 18:12:56 +0200 Subject: [PATCH] Enable viewing file packages as folder on macOS (#21925) The native `NSSavePanel` does not let you pick file packges like `Application.app`-bundles by default. Since the file picker does not return these bundles either, picking these bundles is currently impossible. By enabling `treatsFilePackagesAsDirectories` users can select a bundle and pick it as a folder, and also select the contents of that package. --- native/Avalonia.Native/src/OSX/StorageProvider.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/native/Avalonia.Native/src/OSX/StorageProvider.mm b/native/Avalonia.Native/src/OSX/StorageProvider.mm index 7f9f622171..8e3ad185de 100644 --- a/native/Avalonia.Native/src/OSX/StorageProvider.mm +++ b/native/Avalonia.Native/src/OSX/StorageProvider.mm @@ -192,6 +192,7 @@ public: panel.canChooseDirectories = true; panel.canCreateDirectories = true; panel.canChooseFiles = false; + panel.treatsFilePackagesAsDirectories = true; if(title != nullptr) {