void GeneralWidget::onUpdateAutomatically() { cSetAutoUpdate(_updateAutomatically->checked()); Local::writeSettings(); _updateRow->toggleAnimated(cAutoUpdate()); if (cAutoUpdate()) { Sandbox::startUpdateCheck(); } else { Sandbox::stopUpdate(); } }
void GeneralWidget::onUpdateAutomatically() { cSetAutoUpdate(_updateAutomatically->checked()); Local::writeSettings(); if (cAutoUpdate()) { _updateRow->slideDown(); Sandbox::startUpdateCheck(); } else { _updateRow->slideUp(); Sandbox::stopUpdate(); } }
void GeneralWidget::onUpdateAutomatically() { cSetAutoUpdate(_updateAutomatically->checked()); Local::writeSettings(); _updateRow->toggle( cAutoUpdate(), anim::type::normal); Core::UpdateChecker checker; if (cAutoUpdate()) { checker.start(); } else { checker.stop(); } }
void SettingsInner::onAutoUpdate() { cSetAutoUpdate(!cAutoUpdate()); App::writeConfig(); resizeEvent(0); if (cAutoUpdate()) { App::app()->startUpdateCheck(); if (_updatingState == UpdatingNone) { _checkNow.show(); } else if (_updatingState == UpdatingReady) { _restartNow.show(); } } else { App::app()->stopUpdate(); _restartNow.hide(); _checkNow.hide(); } update(); }