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

Method updateAvailable

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

Source from the content-addressed store, hash-verified

1204}
1205
1206void MainWindow::updateAvailable(GoUpdate::Status status)
1207{
1208 if(!APPLICATION->updatesAreAllowed())
1209 {
1210 updateNotAvailable();
1211 return;
1212 }
1213 UpdateDialog dlg(true, this);
1214 UpdateAction action = (UpdateAction)dlg.exec();
1215 switch (action)
1216 {
1217 case UPDATE_LATER:
1218 qDebug() << "Update will be installed later.";
1219 break;
1220 case UPDATE_NOW:
1221 downloadUpdates(status);
1222 break;
1223 }
1224}
1225
1226void MainWindow::updateNotAvailable()
1227{

Callers

nothing calls this directly

Calls 2

updatesAreAllowedMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected