mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 21:36:45 +00:00
disable absolute locktime if sequence disabled
This commit is contained in:
parent
03c488cf4d
commit
f723d20c9a
1 changed files with 7 additions and 6 deletions
|
@ -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…
Reference in a new issue