diff --git a/resources/index.html b/resources/index.html index 65912ba..f2e9495 100644 --- a/resources/index.html +++ b/resources/index.html @@ -7,10 +7,10 @@
-
+
Minimize
-
+
diff --git a/resources/js/index.js b/resources/js/index.js index 1927d97..b39452c 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -111,4 +111,12 @@ async function launchPrivate() { // Pass IP and game folder to the private server launcher Neutralino.os.execCommand(`${NL_CWD}/scripts/private_server_launch.cmd ${ip} "${config.genshinImpactFolder}/Genshin Impact Game/${await getGenshinExecName()}"`).catch(e => console.log(e)) +} + +function minimizeWin() { + Neutralino.window.minimize() +} + +function closeWin() { + Neutralino.app.exit() } \ No newline at end of file