Fixed open dialog filters

This commit is contained in:
itdominator 2025-06-01 16:36:58 -05:00
parent c08e6e2a00
commit 04e3bbcc77

View File

@ -54,14 +54,15 @@ const openFiles = (startPath) => {
title: "Open File(s):", title: "Open File(s):",
defaultPath: (startPath) ? startPath : os.homedir(), defaultPath: (startPath) ? startPath : os.homedir(),
filters: [ filters: [
{"c": [".h", ".c"]}, { name: "All Files", extensions: ["*"] },
{"cpp": ["hpp", "cpp"]}, { name: "c", extensions: [".h", ".c"] },
{"html": ["js", "css", "scss", "html", "ts"]}, { name: "cpp", extensions: ["hpp", "cpp"] },
{"java": ["java"]}, { name: "html", extensions: ["js", "css", "scss", "html", "ts"] },
{"python": ["py", "pyc"]}, { name: "java", extensions: ["java"] },
{"rust": ["r", "rc"]}, { name: "python", extensions: ["py", "pyc"] },
{"text": ["txt", "log", "md"]}, { name: "rust", extensions: ["r", "rc"] },
{"go": ["go"]}, { name: "text", extensions: ["txt", "log", "md"] },
{ name: "go", extensions: ["go"] },
], ],
properties: [ properties: [
'openFile', 'openFile',