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