fix incorrect script type selected in settings on p2tr wallet load

This commit is contained in:
Craig Raw 2026-05-22 17:32:41 +02:00
parent bc7a0be87e
commit 754ebf7bbf

View File

@ -125,9 +125,8 @@ public class SettingsController extends WalletFormController implements Initiali
walletForm.getWallet().setPolicyType(policyType);
scriptType.setItems(FXCollections.observableArrayList(ScriptType.getAddressableScriptTypes(policyType)));
scriptType.getSelectionModel().select(policyType.getDefaultScriptType());
if(!initialising) {
scriptType.getSelectionModel().select(policyType.getDefaultScriptType());
clearKeystoreTabs();
}
initialising = false;