diff options
| author | Marco Rodolfi <marco.rodolfi@tuta.io> | 2023-06-22 17:25:38 +0200 |
|---|---|---|
| committer | Marco Rodolfi <marco.rodolfi@tuta.io> | 2023-06-22 17:25:38 +0200 |
| commit | ae887e10d6bc24257b723524ef7ddc9b65e8963e (patch) | |
| tree | f45553791e0a6e1744d7082262558eee2d896779 /frontend/src/plugin-loader.tsx | |
| parent | 186c70591a18623385db9cd7c67be6a2265017fe (diff) | |
| download | decky-loader-ae887e10d6bc24257b723524ef7ddc9b65e8963e.tar.gz decky-loader-ae887e10d6bc24257b723524ef7ddc9b65e8963e.zip | |
chore: adding parameters to file picker in logical order
Diffstat (limited to 'frontend/src/plugin-loader.tsx')
| -rw-r--r-- | frontend/src/plugin-loader.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index 387de7bf..98667c65 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -366,6 +366,7 @@ class PluginLoader extends Logger { ): Promise<{ path: string; realpath: string }> { if (selectFiles) { return this.openFilePickerV2( + FileSelectionType.FILE, startPath, true, true, @@ -374,10 +375,10 @@ class PluginLoader extends Logger { undefined, undefined, undefined, - FileSelectionType.FILE, ); } else { return this.openFilePickerV2( + FileSelectionType.FOLDER, startPath, false, true, @@ -386,12 +387,12 @@ class PluginLoader extends Logger { undefined, undefined, undefined, - FileSelectionType.FOLDER, ); } } openFilePickerV2( + select: FileSelectionType, startPath: string, includeFiles?: boolean, includeFolders?: boolean, @@ -400,7 +401,6 @@ class PluginLoader extends Logger { showHiddenFiles?: boolean, allowAllFiles?: boolean, max?: number, - select?: FileSelectionType, ): Promise<{ path: string; realpath: string }> { return new Promise((resolve, reject) => { const Content = ({ closeModal }: { closeModal?: () => void }) => ( |
