diff --git a/src/ui/common.tis b/src/ui/common.tis index 68cce9c28..3ff0cd73c 100644 --- a/src/ui/common.tis +++ b/src/ui/common.tis @@ -236,7 +236,14 @@ function msgbox(type, title, content, callback=null, height=180, width=500, hasR return; } handler.login(res.password, res.remember); - if (!is_port_forward) handler.msgbox("connecting", "Connecting...", "Logging in..."); + if (!is_port_forward) { + // Specially handling file transfer for no permission hanging issue (including 60ms + // timer in setPermission. + // For wrong password input hanging issue, we can not use handler.msgbox. + // But how about wrong password for file transfer? + if (is_file_transfer) handler.msgbox("connecting", "Connecting...", "Logging in..."); + else msgbox("connecting", "Connecting...", "Logging in..."); + } }; } else if (type.indexOf("custom") < 0 && !is_port_forward && !callback) { callback = function() { view.close(); }