From cd3f09efae8e8c52dfe6000757a6c08db6cb751e Mon Sep 17 00:00:00 2001 From: nyne Date: Sun, 23 Mar 2025 16:48:07 +0800 Subject: [PATCH] Make sure the app quits when the window is closed. --- lib/components/window_frame.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/components/window_frame.dart b/lib/components/window_frame.dart index 6525970..c716d18 100644 --- a/lib/components/window_frame.dart +++ b/lib/components/window_frame.dart @@ -82,7 +82,10 @@ class _WindowFrameState extends State { return; } } - windowManager.close(); + windowManager.close().then((_) { + // Make sure the app exits when the window is closed. + exit(0); + }); } @override