From 21c5eec5f6ef004266957e11fdf8b21eff5f3055 Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Tue, 2 Apr 2019 21:05:13 -0500 Subject: [PATCH] Remove referralIdInputTextField The referralId support did not get any interest so we removed it from the UI. It is still supported via prog argument and can be re-enabled again once there are use cases (API?). I left it commented out to make re-enabling easier. --- .../settings/preferences/PreferencesView.java | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/desktop/src/main/java/bisq/desktop/main/settings/preferences/PreferencesView.java b/desktop/src/main/java/bisq/desktop/main/settings/preferences/PreferencesView.java index 87104589f67..685f931d766 100644 --- a/desktop/src/main/java/bisq/desktop/main/settings/preferences/PreferencesView.java +++ b/desktop/src/main/java/bisq/desktop/main/settings/preferences/PreferencesView.java @@ -42,7 +42,6 @@ import bisq.core.locale.Res; import bisq.core.locale.TradeCurrency; import bisq.core.provider.fee.FeeService; -import bisq.core.trade.statistics.ReferralIdService; import bisq.core.user.BlockChainExplorer; import bisq.core.user.Preferences; import bisq.core.util.BSFormatter; @@ -103,7 +102,8 @@ public class PreferencesView extends ActivatableViewAndModel transactionFeeFocusedListener; private final Preferences preferences; private final FeeService feeService; - private final ReferralIdService referralIdService; + //private final ReferralIdService referralIdService; private final AssetService assetService; private final FilterManager filterManager; private final DaoFacade daoFacade; @@ -144,12 +144,10 @@ public class PreferencesView extends ActivatableViewAndModel { if (!newValue.equals(oldValue)) referralIdService.setReferralId(newValue); - }; + };*/ // AvoidStandbyModeService avoidStandbyMode = addSlideToggleButton(root, ++gridRow, @@ -608,8 +606,8 @@ private void activateGeneralOptions() { transactionFeeInputTextField.setText(String.valueOf(getTxFeeForWithdrawalPerByte())); ignoreTradersListInputTextField.setText(String.join(", ", preferences.getIgnoreTradersList())); - referralIdService.getOptionalReferralId().ifPresent(referralId -> referralIdInputTextField.setText(referralId)); - referralIdInputTextField.setPromptText(Res.get("setting.preferences.refererId.prompt")); + /* referralIdService.getOptionalReferralId().ifPresent(referralId -> referralIdInputTextField.setText(referralId)); + referralIdInputTextField.setPromptText(Res.get("setting.preferences.refererId.prompt"));*/ userLanguageComboBox.setItems(languageCodes); userLanguageComboBox.getSelectionModel().select(preferences.getUserLanguage()); userLanguageComboBox.setConverter(new StringConverter<>() { @@ -694,7 +692,7 @@ public BlockChainExplorer fromString(String string) { transactionFeeInputTextField.focusedProperty().addListener(transactionFeeFocusedListener); ignoreTradersListInputTextField.textProperty().addListener(ignoreTradersListListener); useCustomFee.selectedProperty().addListener(useCustomFeeCheckboxListener); - referralIdInputTextField.textProperty().addListener(referralIdListener); + //referralIdInputTextField.textProperty().addListener(referralIdListener); } private Coin getTxFeeForWithdrawalPerByte() { @@ -858,7 +856,7 @@ private void deactivateGeneralOptions() { feeService.feeUpdateCounterProperty().removeListener(transactionFeeChangeListener); ignoreTradersListInputTextField.textProperty().removeListener(ignoreTradersListListener); useCustomFee.selectedProperty().removeListener(useCustomFeeCheckboxListener); - referralIdInputTextField.textProperty().removeListener(referralIdListener); + //referralIdInputTextField.textProperty().removeListener(referralIdListener); } private void deactivateDisplayCurrencies() {