hintbox: disable hintboxes with mounted slots to get code more readable

Origin commit data
------------------
Branch: ni/coolstream
Commit: cc3f633182
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-09-27 (Tue, 27 Sep 2022)

Origin message was:
------------------
- hintbox: disable hintboxes with mounted slots to get code more readable

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-09-27 23:58:23 +02:00
parent 31a8fb071c
commit 5468356fac
7 changed files with 65 additions and 44 deletions

View File

@@ -102,8 +102,8 @@ int CNetworkSetup::exec(CMenuTarget* parent, const std::string &actionKey)
if(actionKey=="networkapply")
{
applyNetworkSettings();
ShowHintS("Read settings...", (sigc::mem_fun(*this, &CNetworkSetup::readNetworkSettings)), 1, true, NEUTRINO_ICON_LOADER);
ShowHintS("Backup settings...", (sigc::mem_fun(*this, &CNetworkSetup::backupNetworkSettings)), 1, true, NEUTRINO_ICON_LOADER);
readNetworkSettings();
backupNetworkSettings();
return res;
}
else if(actionKey=="networktest")
@@ -578,14 +578,18 @@ void CNetworkSetup::saveNetworkSettings()
void CNetworkSetup::applyNetworkSettings()
{
dprintf(DEBUG_NORMAL, "[CNetworkSetup]\t[%s - %d], apply network settings...\n", __func__, __LINE__);
ShowHintS(LOCALE_NETWORKMENU_APPLY_SETTINGS, 1, true, NEUTRINO_ICON_LOADER);
if (!checkForIP())
return;
ShowHintS("Stopping network...", (sigc::mem_fun(networkConfig, &CNetworkConfig::stopNetwork)), 1, true, NEUTRINO_ICON_LOADER);
ShowHintS("Save network settings...", (sigc::mem_fun(*this, &CNetworkSetup::saveNetworkSettings)), 1, true, NEUTRINO_ICON_LOADER);
ShowHintS("Starting network...", (sigc::mem_fun(networkConfig, &CNetworkConfig::startNetwork)), 0, true, NEUTRINO_ICON_LOADER);
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NETWORKMENU_APPLY_SETTINGS));
hintBox.paint();
networkConfig->stopNetwork();
saveNetworkSettings();
networkConfig->startNetwork();
hintBox.hide();
}
//open a message dialog with buttons,
@@ -713,7 +717,6 @@ const char * CNetworkSetup::mypinghost(std::string &host)
void CNetworkSetup::testNetworkSettings()
{
dprintf(DEBUG_NORMAL, "[CNetworkSetup]\t[%s - %d], doing network test...\n", __func__, __LINE__);
ShowHintS(LOCALE_NETWORKMENU_TEST, 1, true, NEUTRINO_ICON_LOADER);
std::string our_ip, our_mask, our_broadcast, our_gateway, our_nameserver;