From 170a8d2b645b26727959b4e8bf44d2ca9647ba1d Mon Sep 17 00:00:00 2001 From: Danny Date: Tue, 2 Jan 2018 15:12:01 +0100 Subject: [PATCH] set initial state for lock toggle btn & update tests --- rai/qt/qt.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rai/qt/qt.cpp b/rai/qt/qt.cpp index ed405ea6..d328d234 100755 --- a/rai/qt/qt.cpp +++ b/rai/qt/qt.cpp @@ -1468,6 +1468,15 @@ wallet (wallet_a) } } }); + + // initial state for lock toggle button + rai::transaction transaction (this->wallet.wallet_m->store.environment, nullptr, true); + if (this->wallet.wallet_m->store.valid_password (transaction)) + { + lock_toggle->setText("Lock"); + password->setDisabled(1); + } + representative->setToolTip ("In the infrequent case where the network needs to make a global decision,\nyour wallet software performs a balance-weighted vote to determine\nthe outcome. Since not everyone can remain online and perform this duty,\nyour wallet names a representative that can vote with, but cannot spend,\nyour balance."); refresh_representative (); }