Merge pull request #2657 from Kingtous/master

fix: regrab key from minimize restore on windows
This commit is contained in:
RustDesk 2022-12-27 18:07:30 +08:00 committed by GitHub
commit 1df9e351c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}");