mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-23 12:09:56 +00:00
fix thread error in OfferDetailsWindow
This commit is contained in:
parent
b33f53f9a5
commit
70420b2f78
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,8 @@
|
||||||
package haveno.desktop.main.overlays.windows;
|
package haveno.desktop.main.overlays.windows;
|
||||||
|
|
||||||
import com.google.common.base.Joiner;
|
import com.google.common.base.Joiner;
|
||||||
|
|
||||||
|
import haveno.common.UserThread;
|
||||||
import haveno.common.crypto.KeyRing;
|
import haveno.common.crypto.KeyRing;
|
||||||
import haveno.common.util.Tuple2;
|
import haveno.common.util.Tuple2;
|
||||||
import haveno.common.util.Tuple4;
|
import haveno.common.util.Tuple4;
|
||||||
|
@ -434,7 +436,7 @@ public class OfferDetailsWindow extends Overlay<OfferDetailsWindow> {
|
||||||
if (trade == null || initProgressSubscription != null) return;
|
if (trade == null || initProgressSubscription != null) return;
|
||||||
initProgressSubscription = EasyBind.subscribe(trade.initProgressProperty(), newProgress -> {
|
initProgressSubscription = EasyBind.subscribe(trade.initProgressProperty(), newProgress -> {
|
||||||
String progress = (int) (newProgress.doubleValue() * 100.0) + "%";
|
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 a new issue