mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-11-10 13:13:36 +01:00
fix thread error in OfferDetailsWindow
This commit is contained in:
parent
b33f53f9a5
commit
70420b2f78
@ -18,6 +18,8 @@
|
||||
package haveno.desktop.main.overlays.windows;
|
||||
|
||||
import com.google.common.base.Joiner;
|
||||
|
||||
import haveno.common.UserThread;
|
||||
import haveno.common.crypto.KeyRing;
|
||||
import haveno.common.util.Tuple2;
|
||||
import haveno.common.util.Tuple4;
|
||||
@ -434,7 +436,7 @@ public class OfferDetailsWindow extends Overlay<OfferDetailsWindow> {
|
||||
if (trade == null || initProgressSubscription != null) return;
|
||||
initProgressSubscription = EasyBind.subscribe(trade.initProgressProperty(), newProgress -> {
|
||||
String progress = (int) (newProgress.doubleValue() * 100.0) + "%";
|
||||
spinnerInfoLabel.setText(Res.get("takeOffer.fundsBox.takeOfferSpinnerInfo") + " " + progress);
|
||||
UserThread.execute(() -> spinnerInfoLabel.setText(Res.get("takeOffer.fundsBox.takeOfferSpinnerInfo") + " " + progress));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user