Fix MRPACK export file include, add webview2 fail msg, fix window state (#2273)

* Fix MRPACK export file include, add webview2 fail msg, fix window state

* fix limt
This commit is contained in:
Geometrically
2024-08-23 13:50:02 -05:00
committed by GitHub
parent c8befb6843
commit 58dac27186
5 changed files with 131 additions and 22 deletions

View File

@@ -126,6 +126,7 @@ initialize_state()
})
const handleClose = async () => {
await saveWindowState(StateFlags.ALL)
await TauriWindow.getCurrent().close()
}
@@ -293,16 +294,7 @@ async function handleCommand(e) {
<Button class="titlebar-button" icon-only @click="() => appWindow.toggleMaximize()">
<MaximizeIcon />
</Button>
<Button
class="titlebar-button close"
icon-only
@click="
() => {
saveWindowState(StateFlags.ALL)
handleClose()
}
"
>
<Button class="titlebar-button close" icon-only @click="handleClose">
<XIcon />
</Button>
</section>