Skip to content

Commit bd241b9

Browse files
committed
UI fixes
1 parent 483dd4f commit bd241b9

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

core/mwctoolbar.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
</sizepolicy>
139139
</property>
140140
<property name="toolTip">
141-
<string>This is the total MWC in all of your accounts that has at least 10 confirmations</string>
141+
<string>This is the total MWC in all of your accounts, some might be locked or not confirmed</string>
142142
</property>
143143
<property name="styleSheet">
144144
<string notr="true">font-family: Open Sans;

state/a_inputpassword.cpp

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -148,34 +148,36 @@ void InputPassword::onLoginResult(bool ok) {
148148

149149
context->wallet->getNodeStatus();
150150

151-
if (!foreignAPIwasReported) {
152-
// Check if foregn API is activated and it is not safe
153-
wallet::WalletConfig config = context->wallet->getWalletConfig();
151+
if (! config::isOnlineNode()) {
152+
if (!foreignAPIwasReported) {
153+
// Check if foregn API is activated and it is not safe
154+
wallet::WalletConfig config = context->wallet->getWalletConfig();
154155

155156

156-
if (config.hasForeignApi()) {
157-
QString message;
157+
if (config.hasForeignApi()) {
158+
QString message;
158159

159-
if (config.foreignApiSecret.isEmpty())
160-
message += "without any authorization";
160+
if (config.foreignApiSecret.isEmpty())
161+
message += "without any authorization";
161162

162-
if (!config.hasTls()) {
163-
if (!message.isEmpty())
164-
message += " and ";
163+
if (!config.hasTls()) {
164+
if (!message.isEmpty())
165+
message += " and ";
165166

166-
message += "with non secure HTTP connection. Please consider to setup TLS certificates for your security.";
167-
}
167+
message += "with non secure HTTP connection. Please consider to setup TLS certificates for your security.";
168+
}
168169

169-
if (!message.isEmpty()) {
170-
message = "Your wallet has activated foreign API " + message;
171-
message += "\n\nFor your security MWC team recommends setup your wallet properly and safe.";
170+
if (!message.isEmpty()) {
171+
message = "Your wallet has activated foreign API " + message;
172+
message += "\n\nFor your security MWC team recommends setup your wallet properly and safe.";
172173

173-
control::MessageBox::messageText(nullptr, "WARNING", message);
174+
control::MessageBox::messageText(nullptr, "WARNING", message);
174175

175-
context->stateMachine->setActionWindow( state::STATE::LISTENING );
176+
context->stateMachine->setActionWindow( state::STATE::LISTENING );
177+
}
176178
}
179+
foreignAPIwasReported = true;
177180
}
178-
foreignAPIwasReported = true;
179181
}
180182
}
181183

0 commit comments

Comments
 (0)