fix show_progress

This commit is contained in:
rustdesk 2022-03-04 00:52:59 +08:00
parent 488b2455b7
commit bf0270323c

View File

@ -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();
}