fix set minimized state

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow 2023-08-11 16:08:47 +08:00
parent d66b10b508
commit e85c0d16b6

View File

@ -529,7 +529,8 @@ class WindowActionPanelState extends State<WindowActionPanel>
@override
void onWindowMinimize() {
stateGlobal.setMaximized(true);
stateGlobal.setMinimized(true);
stateGlobal.setMaximized(false);
super.onWindowMinimize();
}
@ -539,6 +540,7 @@ class WindowActionPanelState extends State<WindowActionPanel>
if (!widget.isMaximized.value) {
widget.isMaximized.value = true;
}
stateGlobal.setMinimized(false);
_setMaximized(true);
super.onWindowMaximize();
}
@ -549,6 +551,7 @@ class WindowActionPanelState extends State<WindowActionPanel>
if (widget.isMaximized.value) {
widget.isMaximized.value = false;
}
stateGlobal.setMinimized(false);
_setMaximized(false);
super.onWindowUnmaximize();
}