mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Use shorter lambda expression
This commit is contained in:
parent
e6fd619d1d
commit
623dbe94a9
1 changed files with 2 additions and 6 deletions
|
@ -243,9 +243,7 @@ public class OfferBookView extends ActivatableViewAndModel<GridPane, OfferBookVi
|
|||
|
||||
// Fixes incorrect ordering of Available offers:
|
||||
// https://github.com/bisq-network/exchange/issues/588
|
||||
priceFeedUpdateCounterListener = (observable, oldValue, newValue) -> {
|
||||
tableView.sort();
|
||||
};
|
||||
priceFeedUpdateCounterListener = (observable, oldValue, newValue) -> tableView.sort();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -266,9 +264,7 @@ public class OfferBookView extends ActivatableViewAndModel<GridPane, OfferBookVi
|
|||
volumeColumn.sortableProperty().bind(model.showAllTradeCurrenciesProperty.not());
|
||||
priceColumn.sortableProperty().bind(model.showAllTradeCurrenciesProperty.not());
|
||||
model.getOfferList().comparatorProperty().bind(tableView.comparatorProperty());
|
||||
model.priceSortTypeProperty.addListener((observable, oldValue, newValue) -> {
|
||||
priceColumn.setSortType(newValue);
|
||||
});
|
||||
model.priceSortTypeProperty.addListener((observable, oldValue, newValue) -> priceColumn.setSortType(newValue));
|
||||
priceColumn.setSortType(model.priceSortTypeProperty.get());
|
||||
|
||||
paymentMethodComboBox.setItems(model.getPaymentMethods());
|
||||
|
|
Loading…
Add table
Reference in a new issue