Loads the settings for this page */
| 65 | |
| 66 | /** Loads the settings for this page */ |
| 67 | void 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 | |
| 86 | void FeedReaderConfig::useProxyToggled() |
| 87 | { |
no test coverage detected