//saves settings without apply, reboot is required
void CNetworkSetup::saveNetworkSettings()
{
	printf("[network setup] saving current network settings...\n");

	prepareSettings();
	networkConfig->commitConfig();
}
示例#2
0
void AppScreenSaver::launch( HWND hWnd )
{
	prepareSettings( &mSettings );

	mImpl = new AppImplMswScreenSaver( this );
	mImpl->init( hWnd );
	mImpl->run();
// NOTHING AFTER THIS LINE RUNS
}
示例#3
0
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();
}
示例#4
0
//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);
}
示例#5
0
//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;
}
示例#6
0
HaarSettings AdvancedSettings::readSettings()
{
    prepareSettings();
    return d->settings;
}
示例#7
0
HaarSettings SimpleSettings::readSettings()
{
    prepareSettings();
    return d->settings;
}