| 1523 | } |
| 1524 | |
| 1525 | void 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 | |
| 1545 | void MainWindow::updateNotAvailable() |
| 1546 | { |
nothing calls this directly
no test coverage detected