From dae91b7c7ed7a4bf8312afc1198a53e8622fcfe9 Mon Sep 17 00:00:00 2001 From: RustDesk <71636191+rustdesk@users.noreply.github.com> Date: Sat, 5 Nov 2022 05:43:04 +0800 Subject: [PATCH] revert cm.tis --- src/ui/cm.tis | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui/cm.tis b/src/ui/cm.tis index 4136e5a26..2b42b719c 100644 --- a/src/ui/cm.tis +++ b/src/ui/cm.tis @@ -318,9 +318,6 @@ handler.addConnection = function(id, is_file_transfer, port_forward, peer_id, na if (conn) { conn.authorized = authorized; update(); - self.timer(30ms, function() { - view.windowState = View.WINDOW_MINIMIZED; - }); return; } var idx = -1; @@ -346,6 +343,11 @@ handler.addConnection = function(id, is_file_transfer, port_forward, peer_id, na bring_to_top(); update(); self.timer(1ms, adjustHeader); + if (authorized) { + self.timer(3s, function() { + view.windowState = View.WINDOW_MINIMIZED; + }); + } } handler.removeConnection = function(id, close) {