From d33e2071b67afddef173d946fe18a662bc0c2589 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Fri, 26 Sep 2025 20:00:54 +0800 Subject: [PATCH] tweak Signed-off-by: bggRGjQaUbCoE --- lib/pages/main/view.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pages/main/view.dart b/lib/pages/main/view.dart index b9c01456..a0eefccf 100644 --- a/lib/pages/main/view.dart +++ b/lib/pages/main/view.dart @@ -34,7 +34,6 @@ class _MainAppState extends State with RouteAware, WidgetsBindingObserver, WindowListener, TrayListener { final MainController _mainController = Get.put(MainController()); late final _setting = GStorage.setting; - static const MethodChannel _channel = MethodChannel('window_control'); @override void initState() { @@ -139,7 +138,7 @@ class _MainAppState extends State void _onClose() { if (Platform.isWindows) { - _channel.invokeMethod('closeWindow'); + const MethodChannel('window_control').invokeMethod('closeWindow'); } else { exit(0); }