summaryrefslogtreecommitdiff
path: root/frontend/src/components/modals/filepicker
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/modals/filepicker')
-rw-r--r--frontend/src/components/modals/filepicker/patches/library.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/frontend/src/components/modals/filepicker/patches/library.ts b/frontend/src/components/modals/filepicker/patches/library.ts
index 076e78f6..71eb9541 100644
--- a/frontend/src/components/modals/filepicker/patches/library.ts
+++ b/frontend/src/components/modals/filepicker/patches/library.ts
@@ -1,6 +1,7 @@
import { Patch, findModuleChild, replacePatch, sleep } from 'decky-frontend-lib';
import Logger from '../../../../logger';
+import { FileSelectionType } from '..';
const logger = new Logger('LibraryPatch');
@@ -13,7 +14,12 @@ function rePatch() {
const details = window.appDetailsStore.GetAppDetails(appid);
logger.debug('game details', details);
// strShortcutStartDir
- const file = await DeckyPluginLoader.openFilePicker(details?.strShortcutStartDir.replaceAll('"', '') || '/');
+ const file = await DeckyPluginLoader.openFilePicker(
+ FileSelectionType.FILE,
+ details?.strShortcutStartDir.replaceAll('"', '') || '/',
+ true,
+ true,
+ );
logger.debug('user selected', file);
window.SteamClient.Apps.SetShortcutExe(appid, JSON.stringify(file.path));
const pathArr = file.path.split('/');