summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop
diff options
context:
space:
mode:
authorBrendan Allan <[email protected]>2026-03-20 23:02:07 +0800
committerGitHub <[email protected]>2026-03-20 15:02:07 +0000
commitd0a57305efcf03f4fd69ca180d97ea85e6cb2f1d (patch)
treec4112592fa632f24544deab42e465b0e2c1d0ff6 /packages/desktop
parent27a70ad70f30faf30d159f56b394c01f9474c7a4 (diff)
downloadopencode-d0a57305efcf03f4fd69ca180d97ea85e6cb2f1d.tar.gz
opencode-d0a57305efcf03f4fd69ca180d97ea85e6cb2f1d.zip
app: file type filter on desktop + multiple files (#18403)
Diffstat (limited to 'packages/desktop')
-rw-r--r--packages/desktop/src/index.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/desktop/src/index.tsx b/packages/desktop/src/index.tsx
index 65149f34b..e67795644 100644
--- a/packages/desktop/src/index.tsx
+++ b/packages/desktop/src/index.tsx
@@ -1,6 +1,8 @@
// @refresh reload
import {
+ ACCEPTED_FILE_EXTENSIONS,
+ filePickerFilters,
AppBaseProviders,
AppInterface,
handleNotificationClick,
@@ -98,6 +100,7 @@ const createPlatform = (): Platform => {
directory: false,
multiple: opts?.multiple ?? false,
title: opts?.title ?? t("desktop.dialog.chooseFile"),
+ filters: filePickerFilters(opts?.extensions ?? ACCEPTED_FILE_EXTENSIONS),
})
return handleWslPicker(result)
},