Merge pull request #3540 from Kingtous/master

fix: prevent call minimize when on mobile
This commit is contained in:
RustDesk 2023-03-07 10:59:03 +08:00 committed by GitHub
commit 1dfbf09974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -456,7 +456,8 @@ class ServerModel with ChangeNotifier {
Future.delayed(Duration.zero, () async {
if (!hideCm) window_on_top(null);
});
if (client.authorized) {
// Only do the hidden task when on Desktop.
if (client.authorized && isDesktop) {
cmHiddenTimer = Timer(const Duration(seconds: 3), () {
if (!hideCm) windowManager.minimize();
cmHiddenTimer = null;