mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Minor cleanup
This commit is contained in:
parent
7c81e1e47b
commit
fd3f0e6d25
@ -126,16 +126,16 @@ public class PendingTradesView extends ActivatableViewAndModel<VBox, PendingTrad
|
||||
private Subscription selectedItemSubscription;
|
||||
private Stage chatPopupStage;
|
||||
private ListChangeListener<PendingTradesListItem> tradesListChangeListener;
|
||||
private Map<String, Long> newChatMessagesByTradeMap = new HashMap<>();
|
||||
private final Map<String, Long> newChatMessagesByTradeMap = new HashMap<>();
|
||||
private String tradeIdOfOpenChat;
|
||||
private double chatPopupStageXPosition = -1;
|
||||
private double chatPopupStageYPosition = -1;
|
||||
private ChangeListener<Number> xPositionListener;
|
||||
private ChangeListener<Number> yPositionListener;
|
||||
|
||||
private Map<String, Button> buttonByTrade = new HashMap<>();
|
||||
private Map<String, JFXBadge> badgeByTrade = new HashMap<>();
|
||||
private Map<String, ListChangeListener<ChatMessage>> listenerByTrade = new HashMap<>();
|
||||
private final Map<String, Button> buttonByTrade = new HashMap<>();
|
||||
private final Map<String, JFXBadge> badgeByTrade = new HashMap<>();
|
||||
private final Map<String, ListChangeListener<ChatMessage>> listenerByTrade = new HashMap<>();
|
||||
private ChangeListener<Trade.State> tradeStateListener;
|
||||
private ChangeListener<Trade.DisputeState> disputeStateListener;
|
||||
private ChangeListener<MediationResultState> mediationResultStateListener;
|
||||
@ -536,9 +536,7 @@ public class PendingTradesView extends ActivatableViewAndModel<VBox, PendingTrad
|
||||
if (selectedItemFromModel != null) {
|
||||
// Select and focus selectedItem from model
|
||||
int index = tableView.getItems().indexOf(selectedItemFromModel);
|
||||
UserThread.execute(() -> {
|
||||
tableView.getSelectionModel().select(index);
|
||||
});
|
||||
UserThread.execute(() -> tableView.getSelectionModel().select(index));
|
||||
}
|
||||
}
|
||||
|
||||
@ -864,7 +862,7 @@ public class PendingTradesView extends ActivatableViewAndModel<VBox, PendingTrad
|
||||
return chatColumn;
|
||||
}
|
||||
|
||||
private TableColumn<PendingTradesListItem, PendingTradesListItem> setRemoveTradeColumnCellFactory() {
|
||||
private void setRemoveTradeColumnCellFactory() {
|
||||
moveTradeToFailedColumn.setCellValueFactory((trade) -> new ReadOnlyObjectWrapper<>(trade.getValue()));
|
||||
moveTradeToFailedColumn.setCellFactory(
|
||||
new Callback<>() {
|
||||
@ -937,6 +935,5 @@ public class PendingTradesView extends ActivatableViewAndModel<VBox, PendingTrad
|
||||
};
|
||||
}
|
||||
});
|
||||
return moveTradeToFailedColumn;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user