From 2631c68b8831ff5876252cf1862e975c4b0f1313 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 29 Dec 2021 00:05:52 +0800 Subject: [PATCH] fix cm minimized not working sometimes --- src/ui/cm.tis | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/cm.tis b/src/ui/cm.tis index 6f481b0b2..71a8e39a6 100644 --- a/src/ui/cm.tis +++ b/src/ui/cm.tis @@ -101,7 +101,9 @@ class Body: Reactor.Component connection.authorized = true; body.update(); handler.authorize(cid); - view.windowState = View.WINDOW_MINIMIZED; + self.timer(30ms, function() { + view.windowState = View.WINDOW_MINIMIZED; + }); }); }