| 1204 | } |
| 1205 | |
| 1206 | void 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 | |
| 1226 | void MainWindow::updateNotAvailable() |
| 1227 | { |
nothing calls this directly
no test coverage detected