mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +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());
|
||||
locktimeBlockType.setDisable(!headersForm.isEditable());
|
||||
locktimeDateType.setDisable(!headersForm.isEditable());
|
||||
locktimeBlock.setDisable(!headersForm.isEditable());
|
||||
locktimeDate.setDisable(!headersForm.isEditable());
|
||||
locktimeCurrentHeight.setDisable(!headersForm.isEditable());
|
||||
boolean locktimeEnabled = headersForm.getTransaction().isLocktimeSequenceEnabled();
|
||||
locktimeNoneType.setDisable(!headersForm.isEditable() || !locktimeEnabled);
|
||||
locktimeBlockType.setDisable(!headersForm.isEditable() || !locktimeEnabled);
|
||||
locktimeDateType.setDisable(!headersForm.isEditable() || !locktimeEnabled);
|
||||
locktimeBlock.setDisable(!headersForm.isEditable() || !locktimeEnabled);
|
||||
locktimeDate.setDisable(!headersForm.isEditable() || !locktimeEnabled);
|
||||
locktimeCurrentHeight.setDisable(!headersForm.isEditable() || !locktimeEnabled);
|
||||
|
||||
updateSize();
|
||||
|
||||
|
|
Loading…
Reference in a new issue