close and minimize funcs

This commit is contained in:
SpikeHD 2022-04-20 17:44:17 -07:00
parent 84e50ff0f0
commit d5736b490d
2 changed files with 10 additions and 2 deletions

View File

@ -7,10 +7,10 @@
</head>
<body>
<div id="controlBar">
<div id="minBtn">
<div id="minBtn" onclick="minimizeWin()">
<img src="icons/min.svg" alt="Minimize" />
</div>
<div id="closeBtn">
<div id="closeBtn" onclick="closeWin()">
<img src="icons/close.svg" />
</div>
</div>

View File

@ -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()
}