| 151 | |
| 152 | |
| 153 | void SyncPreferences::saveValues() { |
| 154 | global.settings->beginGroup("Sync"); |
| 155 | global.settings->setValue("syncAutomatically", syncAutomatically->isChecked()); |
| 156 | global.settings->setValue("syncOnShutdown", syncOnShutdown->isChecked()); |
| 157 | global.settings->setValue("syncOnStartup", syncOnStartup->isChecked()); |
| 158 | global.settings->setValue("enableNotification", enableSyncNotifications->isChecked()); |
| 159 | global.settings->setValue("syncInterval", getSyncInterval()); |
| 160 | global.settings->setValue("showGoodSyncMessagesInTray", showGoodSyncMessagesInTray ->isChecked()); |
| 161 | global.settings->setValue("apiRateLimitAutoRestart", apiRateRestart ->isChecked()); |
| 162 | global.settings->endGroup(); |
| 163 | |
| 164 | global.showGoodSyncMessagesInTray = showGoodSyncMessagesInTray->isChecked(); |
| 165 | |
| 166 | global.setProxyEnabled(enableProxy->isChecked()); |
| 167 | global.setSocks5Enabled(enableSocks5->isChecked()); |
| 168 | global.setProxyHost(host->text().trimmed()); |
| 169 | global.setProxyPort(port->text().toInt()); |
| 170 | global.setProxyUserid(userId->text().trimmed()); |
| 171 | global.setProxyPassword(password->text().trimmed()); |
| 172 | global.setPopupOnSyncError(this->popupOnSyncError->isChecked()); |
| 173 | } |
| 174 | |
| 175 | |
| 176 |
nothing calls this directly
no test coverage detected