| 1267 | return slist.join(','); |
| 1268 | } |
| 1269 | void MainWindow::notificationsChanged() |
| 1270 | { |
| 1271 | QList<NotificationChecker::NotificationEntry> entries = m_notificationChecker->notificationEntries(); |
| 1272 | QList<int> shownNotifications = stringToIntList(APPLICATION->settings()->get("ShownNotifications").toString()); |
| 1273 | for (auto it = entries.begin(); it != entries.end(); ++it) |
| 1274 | { |
| 1275 | NotificationChecker::NotificationEntry entry = *it; |
| 1276 | if (!shownNotifications.contains(entry.id)) |
| 1277 | { |
| 1278 | NotificationDialog dialog(entry, this); |
| 1279 | if (dialog.exec() == NotificationDialog::DontShowAgain) |
| 1280 | { |
| 1281 | shownNotifications.append(entry.id); |
| 1282 | } |
| 1283 | } |
| 1284 | } |
| 1285 | APPLICATION->settings()->set("ShownNotifications", intListToString(shownNotifications)); |
| 1286 | } |
| 1287 | |
| 1288 | void MainWindow::downloadUpdates(GoUpdate::Status status) |
| 1289 | { |
nothing calls this directly
no test coverage detected