diff --git a/lib/main.dart b/lib/main.dart index e6aeb47cd..5e0049eeb 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -187,7 +187,8 @@ class MiriaWindowListener with WindowListener { } catch (e) { if (kDebugMode) print(e); } finally { - await windowManager.destroy(); + await windowManager.setPreventClose(false); + await windowManager.close(); } } }