mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
set offer state on UserThread
This commit is contained in:
parent
5b387f0416
commit
3aab3f57b1
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
package haveno.core.offer;
|
package haveno.core.offer;
|
||||||
|
|
||||||
|
import haveno.common.UserThread;
|
||||||
import haveno.common.crypto.KeyRing;
|
import haveno.common.crypto.KeyRing;
|
||||||
import haveno.common.crypto.PubKeyRing;
|
import haveno.common.crypto.PubKeyRing;
|
||||||
import haveno.common.handlers.ErrorMessageHandler;
|
import haveno.common.handlers.ErrorMessageHandler;
|
||||||
@ -261,7 +262,7 @@ public class Offer implements NetworkPayload, PersistablePayload {
|
|||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
public void setState(Offer.State state) {
|
public void setState(Offer.State state) {
|
||||||
stateProperty().set(state);
|
UserThread.await(() -> stateProperty().set(state));
|
||||||
}
|
}
|
||||||
|
|
||||||
public ObjectProperty<Offer.State> stateProperty() {
|
public ObjectProperty<Offer.State> stateProperty() {
|
||||||
@ -269,7 +270,7 @@ public class Offer implements NetworkPayload, PersistablePayload {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setErrorMessage(String errorMessage) {
|
public void setErrorMessage(String errorMessage) {
|
||||||
this.errorMessageProperty.set(errorMessage);
|
UserThread.await(() -> errorMessageProperty.set(errorMessage));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user