From e85c0d16b624ef6c9d3487f44b6f258fa7295355 Mon Sep 17 00:00:00 2001 From: dignow Date: Fri, 11 Aug 2023 16:08:47 +0800 Subject: [PATCH] fix set minimized state Signed-off-by: dignow --- flutter/lib/desktop/widgets/tabbar_widget.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flutter/lib/desktop/widgets/tabbar_widget.dart b/flutter/lib/desktop/widgets/tabbar_widget.dart index 4178ad5c2..e5e0cd533 100644 --- a/flutter/lib/desktop/widgets/tabbar_widget.dart +++ b/flutter/lib/desktop/widgets/tabbar_widget.dart @@ -529,7 +529,8 @@ class WindowActionPanelState extends State @override void onWindowMinimize() { - stateGlobal.setMaximized(true); + stateGlobal.setMinimized(true); + stateGlobal.setMaximized(false); super.onWindowMinimize(); } @@ -539,6 +540,7 @@ class WindowActionPanelState extends State if (!widget.isMaximized.value) { widget.isMaximized.value = true; } + stateGlobal.setMinimized(false); _setMaximized(true); super.onWindowMaximize(); } @@ -549,6 +551,7 @@ class WindowActionPanelState extends State if (widget.isMaximized.value) { widget.isMaximized.value = false; } + stateGlobal.setMinimized(false); _setMaximized(false); super.onWindowUnmaximize(); }