From bf0270323c3565297d8306397c2b03bc092c1bc6 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 4 Mar 2022 00:52:59 +0800 Subject: [PATCH] fix show_progress --- src/ui/msgbox.tis | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/msgbox.tis b/src/ui/msgbox.tis index e1c2d8e27..0412f8124 100644 --- a/src/ui/msgbox.tis +++ b/src/ui/msgbox.tis @@ -161,12 +161,12 @@ class MsgboxComponent: Reactor.Component { } var values = this.getValues(); if (this.callback) { - var err = (this.callback(values, this.show_progress) || '').trim(); + var err = this.callback(values, this.show_progress); if (!err) { this.close(); return; } - if (err) this.show_progress(false, err); + if (err && err.trim()) this.show_progress(false, err); } else { this.close(); }