Refactiong: rename methods and params

This commit is contained in:
Manfred Karrer 2017-11-28 12:46:08 -05:00
parent b882cb829a
commit 06b0bdd28d
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46
2 changed files with 7 additions and 5 deletions

View File

@ -346,7 +346,7 @@ public class BisqApp extends Application {
private void showEmptyWalletPopup(WalletService walletService) {
EmptyWalletWindow emptyWalletWindow = injector.getInstance(EmptyWalletWindow.class);
emptyWalletWindow.setwalletService(walletService);
emptyWalletWindow.setWalletService(walletService);
emptyWalletWindow.show();
}

View File

@ -90,6 +90,7 @@ class CreateOfferViewModel extends ActivatableWithDataModel<CreateOfferDataModel
// If we would change the price representation in the domain we would not be backward compatible
final StringProperty price = new SimpleStringProperty();
final StringProperty makerFee = new SimpleStringProperty();
final StringProperty makerFeeWithCode = new SimpleStringProperty();
final StringProperty makerFeeCurrencyCode = new SimpleStringProperty();
// Positive % value means always a better price form the maker's perspective:
@ -196,8 +197,8 @@ class CreateOfferViewModel extends ActivatableWithDataModel<CreateOfferDataModel
UserThread.runAfter(() -> {
switch (BisqEnvironment.getBaseCurrencyNetwork().getCurrencyCode()) {
case "BTC":
amount.set("0.0001");
price.set("7000");
amount.set("0.1");
price.set("0.00001");
break;
case "LTC":
amount.set("50");
@ -461,6 +462,7 @@ class CreateOfferViewModel extends ActivatableWithDataModel<CreateOfferDataModel
private void applyMakerFee() {
makerFee.set(getFormatterForMakerFee().formatCoin(dataModel.getMakerFee()));
makerFeeWithCode.set(getFormatterForMakerFee().formatCoinWithCode(dataModel.getMakerFee()));
makerFeeCurrencyCode.set(dataModel.isCurrencyForMakerFeeBtc() ? Res.getBaseCurrencyCode() : "BSQ");
}
@ -634,8 +636,8 @@ class CreateOfferViewModel extends ActivatableWithDataModel<CreateOfferDataModel
}
void setCurrencyForMakerFeeBtc(boolean currencyForMakerFeeBtc) {
dataModel.setPreferredCurrencyForMakerFeeBtc(currencyForMakerFeeBtc);
void setIsCurrencyForMakerFeeBtc(boolean isCurrencyForMakerFeeBtc) {
dataModel.setPreferredCurrencyForMakerFeeBtc(isCurrencyForMakerFeeBtc);
applyMakerFee();
}