macOS: Allow creating directories in file-open panel (#12121)
I don't know whether there are any hard UI guidelines that dictate whether this should be allowed or not, but I think it's very handy and missed it. I also think it makes sense to have this in a directory-centric editor in which opening a directory creates a new window. Release Notes: - Added ability to create directory in open-file dialog on macOS. 
This commit is contained in:
parent
1771eded54
commit
49dffabab9
1 changed files with 1 additions and 0 deletions
|
@ -599,6 +599,7 @@ impl Platform for MacPlatform {
|
|||
panel.setCanChooseDirectories_(options.directories.to_objc());
|
||||
panel.setCanChooseFiles_(options.files.to_objc());
|
||||
panel.setAllowsMultipleSelection_(options.multiple.to_objc());
|
||||
panel.setCanCreateDirectories(true.to_objc());
|
||||
panel.setResolvesAliases_(false.to_objc());
|
||||
let done_tx = Cell::new(Some(done_tx));
|
||||
let block = ConcreteBlock::new(move |response: NSModalResponse| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue