fix file delete bugs

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

No files matched your search

+2 -1
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);