mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-10 04:10:26 +00:00
app: file type filter on desktop + multiple files (#18403)
This commit is contained in:
parent
27a70ad70f
commit
d0a57305ef
9 changed files with 120 additions and 60 deletions
|
|
@ -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)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue