mirror of
https://github.com/boldsuck/haveno.git
synced 2025-01-03 14:49:25 +00:00
fix FX application thread error in portfolio view #1356
This commit is contained in:
parent
123a2a8487
commit
f470112cae
1 changed files with 4 additions and 2 deletions
|
@ -140,9 +140,11 @@ public class PortfolioView extends ActivatableView<TabPane, Void> {
|
|||
@Override
|
||||
protected void activate() {
|
||||
failedTradesManager.getObservableList().addListener((ListChangeListener<Trade>) c -> {
|
||||
UserThread.execute(() -> {
|
||||
if (failedTradesManager.getObservableList().size() > 0 && root.getTabs().size() == 3)
|
||||
root.getTabs().add(failedTradesTab);
|
||||
});
|
||||
});
|
||||
if (failedTradesManager.getObservableList().size() > 0 && root.getTabs().size() == 3)
|
||||
root.getTabs().add(failedTradesTab);
|
||||
|
||||
|
|
Loading…
Reference in a new issue