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

Method updateAvailable

launcher/ui/MainWindow.cpp:1525–1543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1523}
1524
1525void MainWindow::updateAvailable(GoUpdate::Status status)
1526{
1527 if(!APPLICATION->updatesAreAllowed())
1528 {
1529 updateNotAvailable();
1530 return;
1531 }
1532 UpdateDialog dlg(true, this);
1533 UpdateAction action = (UpdateAction)dlg.exec();
1534 switch (action)
1535 {
1536 case UPDATE_LATER:
1537 qDebug() << "Update will be installed later.";
1538 break;
1539 case UPDATE_NOW:
1540 downloadUpdates(status);
1541 break;
1542 }
1543}
1544
1545void MainWindow::updateNotAvailable()
1546{

Callers

nothing calls this directly

Calls 2

updatesAreAllowedMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected