Make sure the app quits when the window is closed.

This commit is contained in:
2025-03-23 16:48:07 +08:00
parent 03628f2afa
commit cd3f09efae

View File

@@ -82,7 +82,10 @@ class _WindowFrameState extends State<WindowFrame> {
return;
}
}
windowManager.close();
windowManager.close().then((_) {
// Make sure the app exits when the window is closed.
exit(0);
});
}
@override