The extensions of dialog and the path of dialog #5712
-
Hello, I wanna open a dialog to select a file with any extensions. let select = await open({
title: title,
multiple: false,
directory: false,
defaultPath: await localDataDir(),
filters: [
{ name: '*', extensions: ['*'] },
],
}); I set the filters as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I'd suggest just removing the
You'd have to keep track of it yourself. Like store the last used path somewhere and then set it as the defaultPath dynamically (remoing the file itself from the path, it should point to the folder) |
Beta Was this translation helpful? Give feedback.
I'd suggest just removing the
filters
property all together, this way it really should list all files.You'd have to keep track of it yourself. Like store the last used path somewhere and then set it as the defaultPath dynamically (remoing the file itself from the path, it should point to the folder)