From 78a83334f42294fdc0e36c2c44e1fbff7369fd7c Mon Sep 17 00:00:00 2001 From: 0neGal Date: Fri, 18 Feb 2022 22:13:08 +0100 Subject: basic drag and drop support Since apparently dragleave and dragenter don't quite work as intended we have to resort to this obscure method which should work just fine on the user's end. --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index 344ac6c..e44b549 100644 --- a/src/index.js +++ b/src/index.js @@ -43,6 +43,7 @@ function start() { ipcMain.on("exit", () => {process.exit(0)}) ipcMain.on("minimize", () => {win.minimize()}) + ipcMain.on("installfrompath", (event, path) => {utils.mods.install(path)}) ipcMain.on("installfromurl", (event, url) => {utils.mods.installFromURL(url)}) ipcMain.on("winLog", (event, ...args) => {win.webContents.send("log", ...args)}); ipcMain.on("winAlert", (event, ...args) => {win.webContents.send("alert", ...args)}); @@ -173,6 +174,7 @@ if (cli.hasArgs()) { cli.init(); } } else { + app.disableHardwareAcceleration(); app.on("ready", () => { app.setPath("userData", path.join(app.getPath("cache"), app.name)); start(); -- cgit v1.2.3 From 6289ee5b03eaf27c188eb68c9f8375ec6fc8ec2f Mon Sep 17 00:00:00 2001 From: 0neGal Date: Fri, 18 Feb 2022 23:21:49 +0100 Subject: fix hardware acceleration being disabled This was due to me testing something, not actually supposed to be in release builds... --- src/index.js | 1 - 1 file changed, 1 deletion(-) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index e44b549..95115b4 100644 --- a/src/index.js +++ b/src/index.js @@ -174,7 +174,6 @@ if (cli.hasArgs()) { cli.init(); } } else { - app.disableHardwareAcceleration(); app.on("ready", () => { app.setPath("userData", path.join(app.getPath("cache"), app.name)); start(); -- cgit v1.2.3