ipcMain.on("event", async (event) => {
const result = await dialog.showOpenDialog(mainWindow, {
properties: ["openDirectory"],
});
event.returnValue = result.filePaths;
});
在 macOS 上,我看到文件变灰,但在 Windows 上,我只能看到文件夹。
我怎样才能让windows文件夹选择对话框显示我选择的文件夹内的文件?
mac 上的示例(文件显示为灰色):