mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-26 07:49:31 -05:00
fix FX application thread error in portfolio view #1356
This commit is contained in:
parent
123a2a8487
commit
f470112cae
@ -140,8 +140,10 @@ public class PortfolioView extends ActivatableView<TabPane, Void> {
|
|||||||
@Override
|
@Override
|
||||||
protected void activate() {
|
protected void activate() {
|
||||||
failedTradesManager.getObservableList().addListener((ListChangeListener<Trade>) c -> {
|
failedTradesManager.getObservableList().addListener((ListChangeListener<Trade>) c -> {
|
||||||
if (failedTradesManager.getObservableList().size() > 0 && root.getTabs().size() == 3)
|
UserThread.execute(() -> {
|
||||||
root.getTabs().add(failedTradesTab);
|
if (failedTradesManager.getObservableList().size() > 0 && root.getTabs().size() == 3)
|
||||||
|
root.getTabs().add(failedTradesTab);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
if (failedTradesManager.getObservableList().size() > 0 && root.getTabs().size() == 3)
|
if (failedTradesManager.getObservableList().size() > 0 && root.getTabs().size() == 3)
|
||||||
root.getTabs().add(failedTradesTab);
|
root.getTabs().add(failedTradesTab);
|
||||||
|
Loading…
Reference in New Issue
Block a user