MCPcopy Create free account
hub / github.com/Faster3ck/Converseen / manualCheckForUpdate

Method manualCheckForUpdate

src/mainwindowimpl.cpp:1371–1385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1369}
1370
1371void 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
1387void MainWindowImpl::updateAvailable(const bool &isAvailable)
1388{

Callers

nothing calls this directly

Calls 1

isUpdateAvailableMethod · 0.80

Tested by

no test coverage detected