mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-10-05 19:18:26 +00:00
fix incorrect script type selected in settings on p2tr wallet load
This commit is contained in:
@@ -125,9 +125,8 @@ public class SettingsController extends WalletFormController implements Initiali
|
|||||||
walletForm.getWallet().setPolicyType(policyType);
|
walletForm.getWallet().setPolicyType(policyType);
|
||||||
|
|
||||||
scriptType.setItems(FXCollections.observableArrayList(ScriptType.getAddressableScriptTypes(policyType)));
|
scriptType.setItems(FXCollections.observableArrayList(ScriptType.getAddressableScriptTypes(policyType)));
|
||||||
scriptType.getSelectionModel().select(policyType.getDefaultScriptType());
|
|
||||||
|
|
||||||
if(!initialising) {
|
if(!initialising) {
|
||||||
|
scriptType.getSelectionModel().select(policyType.getDefaultScriptType());
|
||||||
clearKeystoreTabs();
|
clearKeystoreTabs();
|
||||||
}
|
}
|
||||||
initialising = false;
|
initialising = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user