diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2013-03-26 03:07:06 +0100 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2016-10-24 10:23:58 +0000 |
commit | 32efa79e0e63b6d3f055326b2e6b794815d408ad (patch) | |
tree | 61ab13c8cbe91c4a22e46fdaefc63bd99c36d89c /src/net.cpp | |
parent | e38993bb36801d492cad87479b8473794f19c9da (diff) |
Qt: Add GUI feedback and control of network activity state.
Add getNetworkActive()/setNetworkActive() method to client model.
Send network active status through NotifyNetworkActiveChanged.
Indicate in tool tip of gui status bar network indicator whether network activity is disabled.
Indicate in debug window whether network activity is disabled and add button to allow user to toggle network activity state.
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp index 973e278e0e..7c5e00c6fc 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2050,6 +2050,8 @@ void CConnman::SetNetworkActive(bool active) } else { fNetworkActive = true; } + + uiInterface.NotifyNetworkActiveChanged(fNetworkActive); } CConnman::CConnman(uint64_t nSeed0In, uint64_t nSeed1In) : nSeed0(nSeed0In), nSeed1(nSeed1In) |