fix: correct handle exit
This commit is contained in:
@@ -66,7 +66,7 @@ class _HomePageState extends State<HomePage> with TrayListener {
|
|||||||
label: AppLocalizations.of(context)!.exit,
|
label: AppLocalizations.of(context)!.exit,
|
||||||
onClick: (menuItem) {
|
onClick: (menuItem) {
|
||||||
forceExit = true;
|
forceExit = true;
|
||||||
ServicesBinding.instance.exitApplication(AppExitType.required);
|
ServicesBinding.instance.exitApplication(AppExitType.cancelable);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user