fix file delete bugs

This commit is contained in:
rustdesk
2022-03-28 19:05:12 +08:00
parent 3ea33f7203
commit a56aa08a66
6 changed files with 102 additions and 27 deletions

View File

@@ -145,6 +145,7 @@ class MsgboxComponent: Reactor.Component {
var values = this.getValues();
values.skip = true;
if (this.callback) this.callback(values);
if (this.close) this.close();
}
event click $(button#submit) {
@@ -164,7 +165,7 @@ class MsgboxComponent: Reactor.Component {
var self = this;
var err = this.callback(values, function(a=1, b='') { self.show_progress(a, b); });
if (!err) {
this.close();
if (this.close) this.close();
return;
}
if (err && err.trim()) this.show_progress(false, err);