| 1222 | } |
| 1223 | |
| 1224 | void 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 | |
| 1244 | void MainWindow::updateNotAvailable() |
| 1245 | { |
nothing calls this directly
no test coverage detected