remove settings toggles to deny api takers & show pre-release notifications
This commit is contained in:
parent
9b88b54729
commit
ff59f2ed23
@ -512,8 +512,8 @@ public class PreferencesView extends ActivatableViewAndModel<GridPane, Preferenc
|
|||||||
useDarkMode = addSlideToggleButton(root, ++gridRow, Res.get("setting.preferences.useDarkMode"));
|
useDarkMode = addSlideToggleButton(root, ++gridRow, Res.get("setting.preferences.useDarkMode"));
|
||||||
sortMarketCurrenciesNumerically = addSlideToggleButton(root, ++gridRow, Res.get("setting.preferences.sortWithNumOffers"));
|
sortMarketCurrenciesNumerically = addSlideToggleButton(root, ++gridRow, Res.get("setting.preferences.sortWithNumOffers"));
|
||||||
hideNonAccountPaymentMethodsToggle = addSlideToggleButton(root, ++gridRow, Res.get("setting.preferences.onlyShowPaymentMethodsFromAccount"));
|
hideNonAccountPaymentMethodsToggle = addSlideToggleButton(root, ++gridRow, Res.get("setting.preferences.onlyShowPaymentMethodsFromAccount"));
|
||||||
denyApiTakerToggle = addSlideToggleButton(root, ++gridRow, Res.get("setting.preferences.denyApiTaker"));
|
//denyApiTakerToggle = addSlideToggleButton(root, ++gridRow, Res.get("setting.preferences.denyApiTaker")); // TODO: re-enable?
|
||||||
notifyOnPreReleaseToggle = addSlideToggleButton(root, ++gridRow, Res.get("setting.preferences.notifyOnPreRelease"));
|
//notifyOnPreReleaseToggle = addSlideToggleButton(root, ++gridRow, Res.get("setting.preferences.notifyOnPreRelease"));
|
||||||
resetDontShowAgainButton = addButton(root, ++gridRow, Res.get("setting.preferences.resetAllFlags"), 0);
|
resetDontShowAgainButton = addButton(root, ++gridRow, Res.get("setting.preferences.resetAllFlags"), 0);
|
||||||
resetDontShowAgainButton.getStyleClass().add("compact-button");
|
resetDontShowAgainButton.getStyleClass().add("compact-button");
|
||||||
resetDontShowAgainButton.setMaxWidth(Double.MAX_VALUE);
|
resetDontShowAgainButton.setMaxWidth(Double.MAX_VALUE);
|
||||||
@ -762,11 +762,11 @@ public class PreferencesView extends ActivatableViewAndModel<GridPane, Preferenc
|
|||||||
hideNonAccountPaymentMethodsToggle.setOnAction(e -> preferences.setHideNonAccountPaymentMethods(hideNonAccountPaymentMethodsToggle.isSelected()));
|
hideNonAccountPaymentMethodsToggle.setOnAction(e -> preferences.setHideNonAccountPaymentMethods(hideNonAccountPaymentMethodsToggle.isSelected()));
|
||||||
hideNonAccountPaymentMethodsToggle.setDisable(disableToggle);
|
hideNonAccountPaymentMethodsToggle.setDisable(disableToggle);
|
||||||
|
|
||||||
denyApiTakerToggle.setSelected(preferences.isDenyApiTaker());
|
//denyApiTakerToggle.setSelected(preferences.isDenyApiTaker());
|
||||||
denyApiTakerToggle.setOnAction(e -> preferences.setDenyApiTaker(denyApiTakerToggle.isSelected()));
|
//denyApiTakerToggle.setOnAction(e -> preferences.setDenyApiTaker(denyApiTakerToggle.isSelected()));
|
||||||
|
|
||||||
notifyOnPreReleaseToggle.setSelected(preferences.isNotifyOnPreRelease());
|
//notifyOnPreReleaseToggle.setSelected(preferences.isNotifyOnPreRelease());
|
||||||
notifyOnPreReleaseToggle.setOnAction(e -> preferences.setNotifyOnPreRelease(notifyOnPreReleaseToggle.isSelected()));
|
//notifyOnPreReleaseToggle.setOnAction(e -> preferences.setNotifyOnPreRelease(notifyOnPreReleaseToggle.isSelected()));
|
||||||
|
|
||||||
resetDontShowAgainButton.setOnAction(e -> preferences.resetDontShowAgain());
|
resetDontShowAgainButton.setOnAction(e -> preferences.resetDontShowAgain());
|
||||||
|
|
||||||
@ -837,8 +837,8 @@ public class PreferencesView extends ActivatableViewAndModel<GridPane, Preferenc
|
|||||||
useDarkMode.setOnAction(null);
|
useDarkMode.setOnAction(null);
|
||||||
sortMarketCurrenciesNumerically.setOnAction(null);
|
sortMarketCurrenciesNumerically.setOnAction(null);
|
||||||
hideNonAccountPaymentMethodsToggle.setOnAction(null);
|
hideNonAccountPaymentMethodsToggle.setOnAction(null);
|
||||||
denyApiTakerToggle.setOnAction(null);
|
//denyApiTakerToggle.setOnAction(null);
|
||||||
notifyOnPreReleaseToggle.setOnAction(null);
|
//notifyOnPreReleaseToggle.setOnAction(null);
|
||||||
showOwnOffersInOfferBook.setOnAction(null);
|
showOwnOffersInOfferBook.setOnAction(null);
|
||||||
resetDontShowAgainButton.setOnAction(null);
|
resetDontShowAgainButton.setOnAction(null);
|
||||||
if (displayStandbyModeFeature) {
|
if (displayStandbyModeFeature) {
|
||||||
|
Loading…
Reference in New Issue
Block a user