void RbUtilQt::updateSettings() { qDebug() << "[RbUtil] updating current settings"; updateDevice(); updateManual(); HttpGet::setGlobalProxy(proxy()); HttpGet::setGlobalCache(RbSettings::value(RbSettings::CachePath).toString()); HttpGet::setGlobalDumbCache(RbSettings::value(RbSettings::CacheOffline).toBool()); if(RbSettings::value(RbSettings::RbutilVersion) != PUREVERSION) { QApplication::processEvents(); QMessageBox::information(this, tr("New installation"), tr("This is a new installation of Rockbox Utility, or a new version. " "The configuration dialog will now open to allow you to setup the program, " " or review your settings.")); configDialog(); } else if(chkConfig(false)) { QApplication::processEvents(); QMessageBox::critical(this, tr("Configuration error"), tr("Your configuration is invalid. This is most likely due " "to a changed device path. The configuration dialog will " "now open to allow you to correct the problem.")); configDialog(); } }
void ManualWidget::changeEvent(QEvent *e) { if(e->type() == QEvent::LanguageChange) { ui.retranslateUi(this); updateManual(); } else { QWidget::changeEvent(e); } }
void RbUtilQt::updateSettings() { qDebug() << "[RbUtil] updating current settings"; updateDevice(); updateManual(); if(RbSettings::value(RbSettings::ProxyType) == "system") { HttpGet::setGlobalProxy(System::systemProxy()); } else if(RbSettings::value(RbSettings::ProxyType) == "manual") { HttpGet::setGlobalProxy(RbSettings::value(RbSettings::Proxy).toString()); } else { HttpGet::setGlobalProxy(QUrl("")); } HttpGet::setGlobalCache(RbSettings::value(RbSettings::CachePath).toString()); HttpGet::setGlobalDumbCache(RbSettings::value(RbSettings::CacheOffline).toBool()); }