mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-12 02:05:53 +00:00
Wallet Template: bugfix in ui logic for encryption
This commit is contained in:
parent
a5e4d046df
commit
8ce96e82e7
@ -65,11 +65,9 @@ public class WalletSetPasswordController {
|
||||
protected void onFinish(KeyParameter aesKey) {
|
||||
// The actual encryption part doesn't take very long as most private keys are derived on demand.
|
||||
Main.bitcoin.wallet().encrypt(scrypt, aesKey);
|
||||
fadeIn(explanationLabel);
|
||||
fadeIn(widgetGrid);
|
||||
fadeIn(closeButton);
|
||||
fadeOut(progressMeter);
|
||||
fadeOut(padlockImage);
|
||||
informationalAlert("Wallet encrypted",
|
||||
"You can remove the password at any time from the settings screen.");
|
||||
overlayUI.done();
|
||||
}
|
||||
};
|
||||
progressMeter.progressProperty().bind(tasks.progress);
|
||||
|
@ -173,6 +173,7 @@ public class WalletSettingsController {
|
||||
Main.bitcoin.wallet().decrypt(aesKey);
|
||||
informationalAlert("Wallet decrypted", "A password will no longer be required to send money or edit settings.");
|
||||
passwordButton.setText("Set password");
|
||||
aesKey = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user