Skip to content

Commit

Permalink
Tiny refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub-CZ committed Jan 4, 2021
1 parent 1cab0ee commit 8872400
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -323,7 +323,7 @@ public void initWithData(OfferPayload.Direction direction, TradeCurrency tradeCu
showInsufficientBsqFundsForBtcFeePaymentPopup();
}

// called form parent as the view does not get notified when the tab is closed
// called from parent as the view does not get notified when the tab is closed
public void onClose() {
// we use model.placeOfferCompleted to not react on close which was triggered by a successful placeOffer
if (model.getDataModel().getBalance().get().isPositive() && !model.placeOfferCompleted.get()) {
Expand Down
4 changes: 2 additions & 2 deletions desktop/src/main/java/bisq/desktop/main/offer/OfferView.java
Expand Up @@ -223,7 +223,7 @@ public void onTakeOffer(Offer offer) {
// in different graphs
takeOfferView = (TakeOfferView) view;
takeOfferView.initWithData(offer);
takeOfferPane = ((TakeOfferView) view).getRoot();
takeOfferPane = takeOfferView.getRoot();
takeOfferTab = new Tab(getTakeOfferTabName());
takeOfferTab.setClosable(true);
// close handler from close on take offer action
Expand Down Expand Up @@ -252,7 +252,7 @@ private String getArbitrationLanguages() {
return arbitratorManager.getObservableMap().values().stream()
.flatMap(arbitrator -> arbitrator.getLanguageCodes().stream())
.distinct()
.map(languageCode -> LanguageUtil.getDisplayName(languageCode))
.map(LanguageUtil::getDisplayName)
.collect(Collectors.joining(", "));
}

Expand Down

0 comments on commit 8872400

Please sign in to comment.