Browse Source

disable absolute locktime if sequence disabled

bwt
Craig Raw 4 years ago
parent
commit
f723d20c9a
  1. 13
      src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java

13
src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java

@ -313,12 +313,13 @@ public class HeadersController extends TransactionFormController implements Init
} }
}); });
locktimeNoneType.setDisable(!headersForm.isEditable()); boolean locktimeEnabled = headersForm.getTransaction().isLocktimeSequenceEnabled();
locktimeBlockType.setDisable(!headersForm.isEditable()); locktimeNoneType.setDisable(!headersForm.isEditable() || !locktimeEnabled);
locktimeDateType.setDisable(!headersForm.isEditable()); locktimeBlockType.setDisable(!headersForm.isEditable() || !locktimeEnabled);
locktimeBlock.setDisable(!headersForm.isEditable()); locktimeDateType.setDisable(!headersForm.isEditable() || !locktimeEnabled);
locktimeDate.setDisable(!headersForm.isEditable()); locktimeBlock.setDisable(!headersForm.isEditable() || !locktimeEnabled);
locktimeCurrentHeight.setDisable(!headersForm.isEditable()); locktimeDate.setDisable(!headersForm.isEditable() || !locktimeEnabled);
locktimeCurrentHeight.setDisable(!headersForm.isEditable() || !locktimeEnabled);
updateSize(); updateSize();

Loading…
Cancel
Save