mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
Chore: Better logical order for file picker v2 function call
This commit is contained in:
@@ -127,13 +127,20 @@ const iconStyles = {
|
|||||||
|
|
||||||
const FilePicker: FunctionComponent<FilePickerProps> = ({
|
const FilePicker: FunctionComponent<FilePickerProps> = ({
|
||||||
startPath,
|
startPath,
|
||||||
|
//What are we allowing to show in the file picker
|
||||||
includeFiles = true,
|
includeFiles = true,
|
||||||
filter = undefined,
|
|
||||||
includeFolders = true,
|
includeFolders = true,
|
||||||
|
//Parameter for specifying a specific filename match
|
||||||
|
filter = undefined,
|
||||||
|
//Filter for specific extensions as an array
|
||||||
validFileExtensions = undefined,
|
validFileExtensions = undefined,
|
||||||
|
//Allow to override the fixed extension above
|
||||||
allowAllFiles = true,
|
allowAllFiles = true,
|
||||||
|
//If we need to show hidden files and folders (both Win and Linux should work)
|
||||||
defaultHidden = false, // false by default makes sense for most users
|
defaultHidden = false, // false by default makes sense for most users
|
||||||
|
//How much files per page to show, default 1000
|
||||||
max = 1000,
|
max = 1000,
|
||||||
|
//Which picking option to select by default
|
||||||
fileSelType = FileSelectionType.NONE,
|
fileSelType = FileSelectionType.NONE,
|
||||||
onSubmit,
|
onSubmit,
|
||||||
closeModal,
|
closeModal,
|
||||||
|
|||||||
@@ -368,8 +368,8 @@ class PluginLoader extends Logger {
|
|||||||
return this.openFilePickerV2(
|
return this.openFilePickerV2(
|
||||||
startPath,
|
startPath,
|
||||||
true,
|
true,
|
||||||
regex,
|
|
||||||
true,
|
true,
|
||||||
|
regex,
|
||||||
undefined,
|
undefined,
|
||||||
undefined,
|
undefined,
|
||||||
undefined,
|
undefined,
|
||||||
@@ -380,8 +380,8 @@ class PluginLoader extends Logger {
|
|||||||
return this.openFilePickerV2(
|
return this.openFilePickerV2(
|
||||||
startPath,
|
startPath,
|
||||||
false,
|
false,
|
||||||
regex,
|
|
||||||
true,
|
true,
|
||||||
|
regex,
|
||||||
undefined,
|
undefined,
|
||||||
undefined,
|
undefined,
|
||||||
undefined,
|
undefined,
|
||||||
@@ -394,8 +394,8 @@ class PluginLoader extends Logger {
|
|||||||
openFilePickerV2(
|
openFilePickerV2(
|
||||||
startPath: string,
|
startPath: string,
|
||||||
includeFiles?: boolean,
|
includeFiles?: boolean,
|
||||||
filter?: RegExp | ((file: File) => boolean),
|
|
||||||
includeFolders?: boolean,
|
includeFolders?: boolean,
|
||||||
|
filter?: RegExp | ((file: File) => boolean),
|
||||||
extensions?: string[],
|
extensions?: string[],
|
||||||
showHiddenFiles?: boolean,
|
showHiddenFiles?: boolean,
|
||||||
allowAllFiles?: boolean,
|
allowAllFiles?: boolean,
|
||||||
|
|||||||
Reference in New Issue
Block a user