mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 10:06:23 +08:00
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user