aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-01-03 01:53:05 +0100
committer0neGal <mail@0negal.com>2022-01-03 01:53:05 +0100
commit34c93e9e7714322aa67fc427e3b9f03fea827229 (patch)
treeb86ee5958505cde4696d9a4c6bb2aa9287bcd3ad /src/index.js
parent42e6f3b358bf4d569a0849f3d5c99bb58bf432ba (diff)
downloadViper-34c93e9e7714322aa67fc427e3b9f03fea827229.tar.gz
Viper-34c93e9e7714322aa67fc427e3b9f03fea827229.zip
we're now able to install archived mods
Lovely, only issue is for some reason both on Windows and Linux file dialogs can't select both directories and files, so either it's a folder or it's an archive, not both. So I guess we need to make some way to select it...
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 45400a5..a723622 100644
--- a/src/index.js
+++ b/src/index.js
@@ -62,7 +62,7 @@ function start() {
ipcMain.on("removemod", (event, mod) => {utils.mods.remove(mod)})
ipcMain.on("togglemod", (event, mod) => {utils.mods.toggle(mod)})
ipcMain.on("installmod", () => {
- dialog.showOpenDialog({properties: ["openDirectory"]}).then(res => {
+ dialog.showOpenDialog({properties: ["openFile"]}).then(res => {
utils.mods.install(res.filePaths[0]);
}).catch(err => {console.error(err)})
})