Changeset View
Changeset View
Standalone View
Standalone View
src/qt/overviewpage.cpp
Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | if (model && model->getOptionsModel()) { | ||||
connect(model, &WalletModel::notifyWatchonlyChanged, | connect(model, &WalletModel::notifyWatchonlyChanged, | ||||
[this](bool showWatchOnly) { | [this](bool showWatchOnly) { | ||||
updateWatchOnlyLabels( | updateWatchOnlyLabels( | ||||
showWatchOnly && | showWatchOnly && | ||||
!walletModel->wallet().privateKeysDisabled()); | !walletModel->wallet().privateKeysDisabled()); | ||||
}); | }); | ||||
} | } | ||||
// update the display unit, to not use the default ("BCH") | // update the display unit, to not use the default ("XEC") | ||||
updateDisplayUnit(); | updateDisplayUnit(); | ||||
} | } | ||||
void OverviewPage::updateDisplayUnit() { | void OverviewPage::updateDisplayUnit() { | ||||
if (walletModel && walletModel->getOptionsModel()) { | if (walletModel && walletModel->getOptionsModel()) { | ||||
if (m_balances.balance != -SATOSHI) { | if (m_balances.balance != -SATOSHI) { | ||||
setBalance(m_balances); | setBalance(m_balances); | ||||
} | } | ||||
Show All 17 Lines |