| 946 | } |
| 947 | |
| 948 | void BitcoinGUI::setNetworkActive(bool network_active) |
| 949 | { |
| 950 | updateNetworkState(); |
| 951 | m_network_context_menu->clear(); |
| 952 | m_network_context_menu->addAction( |
| 953 | //: A context menu item. The "Peers tab" is an element of the "Node window". |
| 954 | tr("Show Peers tab"), |
| 955 | [this] { |
| 956 | rpcConsole->setTabFocus(RPCConsole::TabTypes::PEERS); |
| 957 | showDebugWindow(); |
| 958 | }); |
| 959 | m_network_context_menu->addAction( |
| 960 | network_active ? |
| 961 | //: A context menu item. |
| 962 | tr("Disable network activity") : |
| 963 | //: A context menu item. The network activity was disabled previously. |
| 964 | tr("Enable network activity"), |
| 965 | [this, new_state = !network_active] { m_node.setNetworkActive(new_state); }); |
| 966 | } |
| 967 | |
| 968 | void BitcoinGUI::updateHeadersSyncProgressLabel() |
| 969 | { |
nothing calls this directly
no test coverage detected