Skip to content

Commit

Permalink
Reset rounded for privacy info when switching between payment methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ripcurlx committed Feb 5, 2020
1 parent 8809759 commit 3438535
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ public void setContentForPrivacyPopOver(Node node) {
setActionHandlers(node);
}

public void hideInfoContent() {
currentIcon = null;
hideIcons();
}

public void setIconsRightAligned() {
AnchorPane.clearConstraints(infoIcon);
AnchorPane.clearConstraints(warningIcon);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,8 @@ private void createListeners() {
volumeListener = (observable, oldValue, newValue) -> {
if (!newValue.equals("") && CurrencyUtil.isFiatCurrency(model.tradeCurrencyCode.get())) {
volumeInfoInputTextField.setContentForPrivacyPopOver(createPopoverLabel(Res.get("offerbook.info.roundedFiatVolume")));
} else {
volumeInfoInputTextField.hideInfoContent();
}
};

Expand Down

0 comments on commit 3438535

Please sign in to comment.