| 1369 | } |
| 1370 | |
| 1371 | void MainWindowImpl::manualCheckForUpdate() |
| 1372 | { |
| 1373 | // Checks for updates when manually requested |
| 1374 | bool update_available = updateChecker->isUpdateAvailable(); |
| 1375 | |
| 1376 | if (update_available) { |
| 1377 | showUpdateDialog(); |
| 1378 | } else { |
| 1379 | QString title = QString(tr("No updates available!")); |
| 1380 | QString text = QString(tr("%1 is already updated to the most recent version.")) |
| 1381 | .arg(globals::PROGRAM_NAME); |
| 1382 | |
| 1383 | QMessageBox::information(this, title, text, QMessageBox::Ok, QMessageBox::Ok); |
| 1384 | } |
| 1385 | } |
| 1386 | |
| 1387 | void MainWindowImpl::updateAvailable(const bool &isAvailable) |
| 1388 | { |
nothing calls this directly
no test coverage detected