Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui: click network icon in status bar opens peers #1137

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/qt/ravengui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ RavenGUI::RavenGUI(const PlatformStyle *_platformStyle, const NetworkStyle *netw
// Subscribe to notifications from core
subscribeToCoreSignals();

connect(connectionsControl, SIGNAL(clicked(QPoint)), this, SLOT(toggleNetworkActive()));
connect(connectionsControl, SIGNAL(clicked(QPoint)), this, SLOT(showDebugWindowActivatePeers()));

modalOverlay = new ModalOverlay(this->centralWidget());
#ifdef ENABLE_WALLET
Expand Down Expand Up @@ -1144,6 +1144,12 @@ void RavenGUI::showDebugWindowActivateConsole()
showDebugWindow();
}

void RavenGUI::showDebugWindowActivatePeers()
{
rpcConsole->setTabFocus(RPCConsole::TAB_PEERS);
showDebugWindow();
}

void RavenGUI::showWalletRepair()
{
rpcConsole->setTabFocus(RPCConsole::TAB_REPAIR);
Expand Down Expand Up @@ -1242,7 +1248,7 @@ void RavenGUI::updateNetworkState()
QString tooltip;

if (clientModel->getNetworkActive()) {
tooltip = tr("%n active connection(s) to Raven network", "", count) + QString(".<br>") + tr("Click to disable network activity.");
tooltip = tr("%n active connection(s) to Raven network", "", count) + QString(".<br>") + tr("Click to show network activity.");
} else {
tooltip = tr("Network activity disabled.") + QString("<br>") + tr("Click to enable network activity again.");
icon = ":/icons/network_disabled";
Expand Down
2 changes: 2 additions & 0 deletions src/qt/ravengui.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ private Q_SLOTS:
void showDebugWindow();
/** Show debug window and set focus to the console */
void showDebugWindowActivateConsole();
/** Show debug window and set focus to the peers tab */
void showDebugWindowActivatePeers();
/** Show debug window and set focus to the wallet repair tab */
void showWalletRepair();
/** Show help message dialog */
Expand Down