mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Add checkbox for disabling DAO
This commit is contained in:
parent
f6b85aae04
commit
0c53699bc9
2 changed files with 5 additions and 1 deletions
|
@ -1802,6 +1802,7 @@ filterWindow.seedNode=Filtered seed nodes (comma sep. onion addresses)
|
|||
filterWindow.priceRelayNode=Filtered price relay nodes (comma sep. onion addresses)
|
||||
filterWindow.btcNode=Filtered Bitcoin nodes (comma sep. addresses + port)
|
||||
filterWindow.preventPublicBtcNetwork=Prevent usage of public Bitcoin network
|
||||
filterWindow.disableDao=Disable DAO
|
||||
filterWindow.add=Add filter
|
||||
filterWindow.remove=Remove filter
|
||||
|
||||
|
|
|
@ -140,6 +140,7 @@ public class FilterWindow extends Overlay<FilterWindow> {
|
|||
InputTextField priceRelayNodesInputTextField = addInputTextField(gridPane, ++rowIndex, Res.get("filterWindow.priceRelayNode"));
|
||||
InputTextField btcNodesInputTextField = addInputTextField(gridPane, ++rowIndex, Res.get("filterWindow.btcNode"));
|
||||
CheckBox preventPublicBtcNetworkCheckBox = addLabelCheckBox(gridPane, ++rowIndex, Res.get("filterWindow.preventPublicBtcNetwork"));
|
||||
CheckBox disableDaoCheckBox = addLabelCheckBox(gridPane, ++rowIndex, Res.get("filterWindow.disableDao"));
|
||||
|
||||
final Filter filter = filterManager.getDevelopersFilter();
|
||||
if (filter != null) {
|
||||
|
@ -180,6 +181,7 @@ public class FilterWindow extends Overlay<FilterWindow> {
|
|||
|
||||
preventPublicBtcNetworkCheckBox.setSelected(filter.isPreventPublicBtcNetwork());
|
||||
|
||||
disableDaoCheckBox.setSelected(filter.isDisableDao());
|
||||
}
|
||||
Button sendButton = new AutoTooltipButton(Res.get("filterWindow.add"));
|
||||
sendButton.setOnAction(e -> {
|
||||
|
@ -264,7 +266,8 @@ public class FilterWindow extends Overlay<FilterWindow> {
|
|||
seedNodes,
|
||||
priceRelayNodes,
|
||||
preventPublicBtcNetworkCheckBox.isSelected(),
|
||||
btcNodes),
|
||||
btcNodes,
|
||||
disableDaoCheckBox.isSelected()),
|
||||
keyInputTextField.getText()))
|
||||
hide();
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue