| 72 | //============================================================================== |
| 73 | |
| 74 | void Window::checkForUpdates() { |
| 75 | /* Get settings from the UI */ |
| 76 | QString version = m_ui->installedVersion->text(); |
| 77 | bool downloaderEnabled = m_ui->enableDownloader->isChecked(); |
| 78 | bool notifyOnFinish = m_ui->showAllNotifcations->isChecked(); |
| 79 | bool notifyOnUpdate = m_ui->showUpdateNotifications->isChecked(); |
| 80 | |
| 81 | /* Apply the settings */ |
| 82 | m_updater->setModuleVersion (DEFS_URL, version); |
| 83 | m_updater->setNotifyOnFinish (DEFS_URL, notifyOnFinish); |
| 84 | m_updater->setNotifyOnUpdate (DEFS_URL, notifyOnUpdate); |
| 85 | m_updater->setDownloaderEnabled (DEFS_URL, downloaderEnabled); |
| 86 | |
| 87 | /* Check for updates */ |
| 88 | m_updater->checkForUpdates (DEFS_URL); |
| 89 | } |
| 90 | |
| 91 | //============================================================================== |
| 92 | // Window::updateChangelog |
nothing calls this directly
no test coverage detected