[fix] building error

This commit is contained in:
Purp1e
2025-03-26 03:50:47 +08:00
parent ed040aadf5
commit 27439593b4

View File

@@ -33,8 +33,8 @@ const Nav = () => {
const close = async () => {
await saveAllNow()
// await exit()
if (app.state.hiddenOnClose) window.getCurrentWindow().hide()
else exit()
if (app.state.hiddenOnClose) await window.getCurrentWindow().hide()
else await exit()
}
const minimize = async () => {