Skip to content

Commit

Permalink
Fix network activity tooltip and icon
Browse files Browse the repository at this point in the history
Network activity tooltip and icon fix, when network activtity
is disabled by user.
  • Loading branch information
DeckerSU committed Apr 15, 2020
1 parent 88e46eb commit 9279bcd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/qt/komodooceangui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,12 @@ void KomodoOceanGUI::updateNetworkState()

QString tooltip;

tooltip = tr("%n active connection(s) to Komodo network", "", count) + QString(".<br>") + tr("Click to disable network activity.");
if (clientModel->getNetworkActive()) {
tooltip = tr("%n active connection(s) to Komodo network", "", count) + QString(".<br>") + tr("Click to disable network activity.");
} else {
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>");
Expand Down

0 comments on commit 9279bcd

Please sign in to comment.