fix: regrab key from minimize restore on windows

This commit is contained in:
Kingtous 2022-12-27 16:18:28 +08:00
parent 5b3b7bd3c0
commit 22e1e7c8d8

View File

@ -148,6 +148,16 @@ class _RemotePageState extends State<RemotePage>
}
}
@override
void onWindowRestore() {
super.onWindowRestore();
// On windows, we use `onWindowRestore` way to handle window restore from
// a minimized state.
if (Platform.isWindows) {
_isWindowBlur = false;
}
}
@override
void dispose() {
debugPrint("REMOTE PAGE dispose ${widget.id}");