mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Logic changes
This commit is contained in:
parent
b7163bb8fc
commit
72fa0823ba
2 changed files with 8 additions and 19 deletions
|
@ -218,30 +218,15 @@ Item {
|
|||
size: 24;
|
||||
// Style
|
||||
color: hifi.colors.blueAccent;
|
||||
anchors.top: parent.top;
|
||||
anchors.topMargin: 26;
|
||||
anchors.left: parent.left;
|
||||
anchors.leftMargin: 12;
|
||||
anchors.right: parent.right;
|
||||
anchors.rightMargin: 12;
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
height: paintedHeight;
|
||||
wrapMode: Text.WordWrap;
|
||||
horizontalAlignment: Text.AlignHCenter;
|
||||
}
|
||||
|
||||
// "Apply" button
|
||||
HifiControlsUit.Button {
|
||||
id: changePassphraseButton;
|
||||
color: hifi.buttons.blue;
|
||||
colorScheme: hifi.colorSchemes.dark;
|
||||
anchors.top: noActivityText.bottom;
|
||||
anchors.topMargin: 25;
|
||||
anchors.horizontalCenter: parent.horizontalCenter;
|
||||
width: 180;
|
||||
height: 40;
|
||||
text: "Apply Now";
|
||||
onClicked: {
|
||||
Qt.openUrlExternally("https://www.highfidelity.com/");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ListView {
|
||||
|
|
|
@ -324,12 +324,16 @@ Wallet::Wallet() {
|
|||
|
||||
connect(ledger.data(), &Ledger::accountResult, this, [&]() {
|
||||
auto wallet = DependencyManager::get<Wallet>();
|
||||
auto ledger = DependencyManager::get<Ledger>();
|
||||
auto walletScriptingInterface = DependencyManager::get<WalletScriptingInterface>();
|
||||
uint status;
|
||||
|
||||
if (_mustRegenerateKeypair) {
|
||||
if (_mustRegenerateKeypair || (!_passphrase->isEmpty() && _publicKeys.count() == 0)) {
|
||||
qCDebug(commerce) << "Regenerating keys and resetting user_hfc_account. _mustRegenerateKeypair:"
|
||||
<< _mustRegenerateKeypair << "_publicKeys.count():" << _publicKeys.count();
|
||||
_mustRegenerateKeypair = false;
|
||||
resetKeysOnly();
|
||||
ledger->reset();
|
||||
generateKeyPair();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue