MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / saveValues

Method saveValues

dialog/preferences/syncpreferences.cpp:153–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152
153void 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

Callers

nothing calls this directly

Calls 7

setProxyEnabledMethod · 0.80
setSocks5EnabledMethod · 0.80
setProxyHostMethod · 0.80
setProxyPortMethod · 0.80
setProxyUseridMethod · 0.80
setProxyPasswordMethod · 0.80
setPopupOnSyncErrorMethod · 0.80

Tested by

no test coverage detected