From dae8c79eab60986a6fc0c7b9374ff75f488ffff4 Mon Sep 17 00:00:00 2001 From: cialloo Date: Sat, 27 Jul 2024 08:29:16 +0800 Subject: [PATCH] fix: correct handle exit --- lib/home_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/home_page.dart b/lib/home_page.dart index 8a83c74..7154bec 100644 --- a/lib/home_page.dart +++ b/lib/home_page.dart @@ -66,7 +66,7 @@ class _HomePageState extends State with TrayListener { label: AppLocalizations.of(context)!.exit, onClick: (menuItem) { forceExit = true; - ServicesBinding.instance.exitApplication(AppExitType.required); + ServicesBinding.instance.exitApplication(AppExitType.cancelable); }, ) ],