From 362aa9a8ffed5727ca33cbc3e8a111e864b8977f Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 9 Mar 2022 21:43:50 +0800 Subject: [PATCH] fix show_progress --- src/ui/msgbox.tis | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/msgbox.tis b/src/ui/msgbox.tis index 0412f8124..b24c667e2 100644 --- a/src/ui/msgbox.tis +++ b/src/ui/msgbox.tis @@ -161,7 +161,8 @@ class MsgboxComponent: Reactor.Component { } var values = this.getValues(); if (this.callback) { - var err = this.callback(values, this.show_progress); + var self = this; + var err = this.callback(values, function(a=1, b='') { self.show_progress(a, b); }); if (!err) { this.close(); return;