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

Method updateAvailable

launcher/ui/MainWindow.cpp:1224–1242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222}
1223
1224void MainWindow::updateAvailable(GoUpdate::Status status)
1225{
1226 if(!APPLICATION->updatesAreAllowed())
1227 {
1228 updateNotAvailable();
1229 return;
1230 }
1231 UpdateDialog dlg(true, this);
1232 UpdateAction action = (UpdateAction)dlg.exec();
1233 switch (action)
1234 {
1235 case UPDATE_LATER:
1236 qDebug() << "Update will be installed later.";
1237 break;
1238 case UPDATE_NOW:
1239 downloadUpdates(status);
1240 break;
1241 }
1242}
1243
1244void MainWindow::updateNotAvailable()
1245{

Callers

nothing calls this directly

Calls 2

updatesAreAllowedMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected