|
@ -33,6 +33,9 @@ public class GeneralPreferencesController extends PreferencesDetailController { |
|
|
@FXML |
|
|
@FXML |
|
|
private ComboBox<ExchangeSource> exchangeSource; |
|
|
private ComboBox<ExchangeSource> exchangeSource; |
|
|
|
|
|
|
|
|
|
|
|
@FXML |
|
|
|
|
|
private UnlabeledToggleSwitch loadRecentWallets; |
|
|
|
|
|
|
|
|
@FXML |
|
|
@FXML |
|
|
private UnlabeledToggleSwitch validateDerivationPaths; |
|
|
private UnlabeledToggleSwitch validateDerivationPaths; |
|
|
|
|
|
|
|
@ -97,6 +100,12 @@ public class GeneralPreferencesController extends PreferencesDetailController { |
|
|
|
|
|
|
|
|
updateCurrencies(exchangeSource.getSelectionModel().getSelectedItem()); |
|
|
updateCurrencies(exchangeSource.getSelectionModel().getSelectedItem()); |
|
|
|
|
|
|
|
|
|
|
|
loadRecentWallets.setSelected(config.isLoadRecentWallets()); |
|
|
|
|
|
loadRecentWallets.selectedProperty().addListener((observableValue, oldValue, newValue) -> { |
|
|
|
|
|
config.setLoadRecentWallets(newValue); |
|
|
|
|
|
EventManager.get().post(new RequestOpenWalletsEvent()); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
validateDerivationPaths.setSelected(config.isValidateDerivationPaths()); |
|
|
validateDerivationPaths.setSelected(config.isValidateDerivationPaths()); |
|
|
validateDerivationPaths.selectedProperty().addListener((observableValue, oldValue, newValue) -> { |
|
|
validateDerivationPaths.selectedProperty().addListener((observableValue, oldValue, newValue) -> { |
|
|
config.setValidateDerivationPaths(newValue); |
|
|
config.setValidateDerivationPaths(newValue); |
|
|