mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-22 07:08:11 +00:00
close and minimize funcs
This commit is contained in:
parent
84e50ff0f0
commit
d5736b490d
@ -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>
|
||||
|
@ -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()
|
||||
}
|
Loading…
Reference in New Issue
Block a user