diff options
| author | AAGaming <aagaming@riseup.net> | 2023-12-30 21:32:23 -0500 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2023-12-30 21:32:23 -0500 |
| commit | 40c7c1b515abf4abcecd6480afb28f27fb71d0f0 (patch) | |
| tree | 576399085651b6e7cb0c37876ed6c2b3d0452dd7 /frontend/src/components/modals/filepicker | |
| parent | 70104065e2145e9a04fef4ae28ec9875a6114e2d (diff) | |
| download | decky-loader-40c7c1b515abf4abcecd6480afb28f27fb71d0f0.tar.gz decky-loader-40c7c1b515abf4abcecd6480afb28f27fb71d0f0.zip | |
port updater to ws, also small refactoring
Diffstat (limited to 'frontend/src/components/modals/filepicker')
| -rw-r--r-- | frontend/src/components/modals/filepicker/index.tsx | 2 | ||||
| -rw-r--r-- | frontend/src/components/modals/filepicker/patches/library.ts | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/frontend/src/components/modals/filepicker/index.tsx b/frontend/src/components/modals/filepicker/index.tsx index 2dfa3ccd..2fbc800b 100644 --- a/frontend/src/components/modals/filepicker/index.tsx +++ b/frontend/src/components/modals/filepicker/index.tsx @@ -95,7 +95,7 @@ const sortOptions = [ }, ]; -const getList = window.DeckyBackend.callable< +const getList = DeckyBackend.callable< [ path: string, includeFiles?: boolean, diff --git a/frontend/src/components/modals/filepicker/patches/library.ts b/frontend/src/components/modals/filepicker/patches/library.ts index d398b83d..076e78f6 100644 --- a/frontend/src/components/modals/filepicker/patches/library.ts +++ b/frontend/src/components/modals/filepicker/patches/library.ts @@ -13,9 +13,7 @@ function rePatch() { const details = window.appDetailsStore.GetAppDetails(appid); logger.debug('game details', details); // strShortcutStartDir - const file = await window.DeckyPluginLoader.openFilePicker( - details?.strShortcutStartDir.replaceAll('"', '') || '/', - ); + const file = await DeckyPluginLoader.openFilePicker(details?.strShortcutStartDir.replaceAll('"', '') || '/'); logger.debug('user selected', file); window.SteamClient.Apps.SetShortcutExe(appid, JSON.stringify(file.path)); const pathArr = file.path.split('/'); |
