Browse Source

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.
pull/21936/head
Jakob Hellermann 2 months ago
committed by GitHub
parent
commit
c338a16d54
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      native/Avalonia.Native/src/OSX/StorageProvider.mm

1
native/Avalonia.Native/src/OSX/StorageProvider.mm

@ -192,6 +192,7 @@ public:
panel.canChooseDirectories = true; panel.canChooseDirectories = true;
panel.canCreateDirectories = true; panel.canCreateDirectories = true;
panel.canChooseFiles = false; panel.canChooseFiles = false;
panel.treatsFilePackagesAsDirectories = true;
if(title != nullptr) if(title != nullptr)
{ {

Loading…
Cancel
Save