MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / checkForUpdates

Method checkForUpdates

launcher/ui/MainWindow.cpp:1978–1989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1976}
1977
1978void MainWindow::checkForUpdates()
1979{
1980 if(BuildConfig.UPDATER_ENABLED)
1981 {
1982 auto updater = APPLICATION->updateChecker();
1983 updater->checkForUpdate(APPLICATION->settings()->get("UpdateChannel").toString(), true);
1984 }
1985 else
1986 {
1987 qWarning() << "Updater not set up. Cannot check for updates.";
1988 }
1989}
1990
1991void MainWindow::on_actionSettings_triggered()
1992{

Callers 1

checkForUpdateMethod · 0.80

Calls 5

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

Tested by

no test coverage detected