//saves settings without apply, reboot is required void CNetworkSetup::saveNetworkSettings() { printf("[network setup] saving current network settings...\n"); prepareSettings(); networkConfig->commitConfig(); }
void AppScreenSaver::launch( HWND hWnd ) { prepareSettings( &mSettings ); mImpl = new AppImplMswScreenSaver( this ); mImpl->init( hWnd ); mImpl->run(); // NOTHING AFTER THIS LINE RUNS }
void Launcher::init() { _arguments = readArguments(_argc, _argv); prepareSettings(); QCoreApplication::setApplicationName(qsl("TelegramDesktop")); #ifndef OS_MAC_OLD QCoreApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true); #endif // OS_MAC_OLD initHook(); }
//saves settings without apply, reboot is required void CNetworkSetup::saveNetworkSettings(bool show_message) { printf("[network setup] saving current network settings...\n"); prepareSettings(); networkConfig->commitConfig(); if (show_message) ShowLocalizedHint(LOCALE_MESSAGEBOX_INFO, LOCALE_NETWORKMENU_SETUPSAVED, width, g_settings.timing[SNeutrinoSettings::TIMING_INFOBAR], NEUTRINO_ICON_INFO); }
//saves settings and apply, reboot not required void CNetworkSetup::applyNetworkSettings() { printf("[network setup] apply network settings...\n"); CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NETWORKMENU_APPLY_SETTINGS)); // UTF-8 hintBox->paint(); prepareSettings(); networkConfig->stopNetwork(); networkConfig->commitConfig(); networkConfig->startNetwork(); hintBox->hide(); delete hintBox; }
HaarSettings AdvancedSettings::readSettings() { prepareSettings(); return d->settings; }
HaarSettings SimpleSettings::readSettings() { prepareSettings(); return d->settings; }