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):",
defaultPath: (startPath) ? startPath : os.homedir(),
filters: [
{"c": [".h", ".c"]},
{"cpp": ["hpp", "cpp"]},
{"html": ["js", "css", "scss", "html", "ts"]},
{"java": ["java"]},
{"python": ["py", "pyc"]},
{"rust": ["r", "rc"]},
{"text": ["txt", "log", "md"]},
{"go": ["go"]},
{ name: "All Files", extensions: ["*"] },
{ name: "c", extensions: [".h", ".c"] },
{ name: "cpp", extensions: ["hpp", "cpp"] },
{ name: "html", extensions: ["js", "css", "scss", "html", "ts"] },
{ name: "java", extensions: ["java"] },
{ name: "python", extensions: ["py", "pyc"] },
{ name: "rust", extensions: ["r", "rc"] },
{ name: "text", extensions: ["txt", "log", "md"] },
{ name: "go", extensions: ["go"] },
],
properties: [
'openFile',