mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-30 17:48:50 +02:00
feat(dialog): allow setting canCreateDirectories on macOS (#978)
* feat(dialog): allow setting `canCreateDirectories` on macOS closes #949 * Discard changes to plugins/log/src/api-iife.js * Discard changes to plugins/store/src/api-iife.js * Discard changes to plugins/window-state/src/api-iife.js * Update plugins/dialog/src/commands.rs Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de> * Update plugins/dialog/src/commands.rs Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de> * Update plugins/dialog/src/lib.rs Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de> * Update plugins/dialog/guest-js/index.ts Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de> * Update plugins/dialog/guest-js/index.ts Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de> --------- Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
This commit is contained in:
co-authored by
Fabian-Lars
parent
ae56b13a4d
commit
aa25c91bb0
@@ -55,6 +55,8 @@ interface OpenDialogOptions {
|
||||
* Defines whether subdirectories will be allowed on the scope or not.
|
||||
*/
|
||||
recursive?: boolean;
|
||||
/** Whether to allow creating directories in the dialog. Enabled by default. **macOS Only** */
|
||||
canCreateDirectories?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,6 +75,8 @@ interface SaveDialogOptions {
|
||||
* If it's not an existing directory, the file name will be set to the dialog's file name input and the dialog will be set to the parent folder.
|
||||
*/
|
||||
defaultPath?: string;
|
||||
/** Whether to allow creating directories in the dialog. Enabled by default. **macOS Only** */
|
||||
canCreateDirectories?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user