MCPcopy Create free account
hub / github.com/RetroShare/RetroShare / load

Method load

plugins/FeedReader/gui/FeedReaderConfig.cpp:67–84  ·  view source on GitHub ↗

Loads the settings for this page */

Source from the content-addressed store, hash-verified

65
66/** Loads the settings for this page */
67void FeedReaderConfig::load()
68{
69 whileBlocking(ui->updateIntervalSpinBox)->setValue(rsFeedReader->getStandardUpdateInterval() / 60);
70 whileBlocking(ui->storageTimeSpinBox)->setValue(rsFeedReader->getStandardStorageTime() / (60 * 60 *24));
71 whileBlocking(ui->saveInBackgroundCheckBox)->setChecked(rsFeedReader->getSaveInBackground());
72 whileBlocking(ui->setMsgToReadOnActivate)->setChecked(FeedReaderSetting_SetMsgToReadOnActivate());
73 whileBlocking(ui->openAllInNewTabCheckBox)->setChecked(FeedReaderSetting_OpenAllInNewTab());
74
75 std::string proxyAddress;
76 uint16_t proxyPort;
77 whileBlocking(ui->useProxyCheckBox)->setChecked(rsFeedReader->getStandardProxy(proxyAddress, proxyPort));
78 whileBlocking(ui->proxyAddressLineEdit)->setText(QString::fromUtf8(proxyAddress.c_str()));
79 whileBlocking(ui->proxyPortSpinBox)->setValue(proxyPort);
80
81 loaded = true;
82
83 useProxyToggled();
84}
85
86void FeedReaderConfig::useProxyToggled()
87{

Callers 1

qt_translatorMethod · 0.45

Calls 7

whileBlockingFunction · 0.85
setValueMethod · 0.80
getSaveInBackgroundMethod · 0.80
getStandardProxyMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected