diff options
| author | Pavel Janík <[email protected]> | 2016-11-11 11:59:33 +0100 |
|---|---|---|
| committer | Pavel Janík <[email protected]> | 2016-11-12 13:28:21 +0100 |
| commit | 1260c1103bf3f5d6b4a9109949346ef4568a9c60 (patch) | |
| tree | a51e15c3a00a1d78222acee1aff0835a8b83907b | |
| parent | Merge #9124: Use better name for local variable to prevent -Wshadow compiler ... (diff) | |
| download | discoin-1260c1103bf3f5d6b4a9109949346ef4568a9c60.tar.xz discoin-1260c1103bf3f5d6b4a9109949346ef4568a9c60.zip | |
Mention the new network toggle functionality in the tooltip.
| -rw-r--r-- | src/qt/bitcoingui.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index b2c9a704e..b7302e396 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -713,13 +713,19 @@ void BitcoinGUI::updateNetworkState() default: icon = ":/icons/connect_4"; break; } + QString tooltip; + if (clientModel->getNetworkActive()) { - connectionsControl->setToolTip(tr("%n active connection(s) to Bitcoin network", "", count)); + tooltip = tr("%n active connection(s) to Bitcoin network", "", count) + QString(".<br>") + tr("Click to disable network activity."); } else { - connectionsControl->setToolTip(tr("Network activity disabled")); + tooltip = tr("Network activity disabled.") + QString("<br>") + tr("Click to enable network activity again."); icon = ":/icons/network_disabled"; } + // Don't word-wrap this (fixed-width) tooltip + tooltip = QString("<nobr>") + tooltip + QString("</nobr>"); + connectionsControl->setToolTip(tooltip); + connectionsControl->setPixmap(platformStyle->SingleColorIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); } |