File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -713,13 +713,19 @@ void BitcoinGUI::updateNetworkState()
713
713
default : icon = " :/icons/connect_4" ; break ;
714
714
}
715
715
716
+ QString tooltip;
717
+
716
718
if (clientModel->getNetworkActive ()) {
717
- connectionsControl-> setToolTip ( tr (" %n active connection(s) to Bitcoin network" , " " , count));
719
+ tooltip = tr (" %n active connection(s) to Bitcoin network" , " " , count) + QString ( " .<br> " ) + tr ( " Click to disable network activity. " );
718
720
} else {
719
- connectionsControl-> setToolTip ( tr (" Network activity disabled" ) );
721
+ tooltip = tr (" Network activity disabled. " ) + QString ( " <br> " ) + tr ( " Click to enable network activity again. " );
720
722
icon = " :/icons/network_disabled" ;
721
723
}
722
724
725
+ // Don't word-wrap this (fixed-width) tooltip
726
+ tooltip = QString (" <nobr>" ) + tooltip + QString (" </nobr>" );
727
+ connectionsControl->setToolTip (tooltip);
728
+
723
729
connectionsControl->setPixmap (platformStyle->SingleColorIcon (icon).pixmap (STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
724
730
}
725
731
You can’t perform that action at this time.
0 commit comments