MCPcopy Create free account
hub / github.com/MultiMC/Launcher / checkForUpdates

Method checkForUpdates

launcher/ui/MainWindow.cpp:1610–1621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1608}
1609
1610void MainWindow::checkForUpdates()
1611{
1612 if(BuildConfig.UPDATER_ENABLED)
1613 {
1614 auto updater = APPLICATION->updateChecker();
1615 updater->checkForUpdate(APPLICATION->settings()->get("UpdateChannel").toString(), true);
1616 }
1617 else
1618 {
1619 qWarning() << "Updater not set up. Cannot check for updates.";
1620 }
1621}
1622
1623void MainWindow::on_actionSettings_triggered()
1624{

Callers

nothing calls this directly

Calls 5

updateCheckerMethod · 0.80
checkForUpdateMethod · 0.80
toStringMethod · 0.45
getMethod · 0.45
settingsMethod · 0.45

Tested by

no test coverage detected