void UpdateBtn::onClick() {
#ifndef TDESKTOP_DISABLE_AUTOUPDATE
	checkReadyUpdate();
	if (Sandbox::updatingState() == Application::UpdatingReady) {
		cSetRestartingUpdate(true);
	} else
#endif
	{
		cSetRestarting(true);
		cSetRestartingToSettings(false);
	}
	App::quit();
}
void GeneralWidget::onRestart() {
#ifndef TDESKTOP_DISABLE_AUTOUPDATE
	checkReadyUpdate();
#endif // !TDESKTOP_DISABLE_AUTOUPDATE
	App::restart();
}