fix close

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-30 15:01:37 +08:00
parent 698e11885a
commit d833f3651c
3 changed files with 23 additions and 26 deletions

View File

@@ -139,7 +139,9 @@ class _MainAppState extends State<MainApp>
}
}
void _onClose() {
Future<void> _onClose() async {
await GStorage.compact();
await GStorage.close();
if (Platform.isWindows) {
const MethodChannel('window_control').invokeMethod('closeWindow');
} else {