| 1249 | return slist.join(','); |
| 1250 | } |
| 1251 | void MainWindow::notificationsChanged() |
| 1252 | { |
| 1253 | QList<NotificationChecker::NotificationEntry> entries = m_notificationChecker->notificationEntries(); |
| 1254 | QList<int> shownNotifications = stringToIntList(APPLICATION->settings()->get("ShownNotifications").toString()); |
| 1255 | for (auto it = entries.begin(); it != entries.end(); ++it) |
| 1256 | { |
| 1257 | NotificationChecker::NotificationEntry entry = *it; |
| 1258 | if (!shownNotifications.contains(entry.id)) |
| 1259 | { |
| 1260 | NotificationDialog dialog(entry, this); |
| 1261 | if (dialog.exec() == NotificationDialog::DontShowAgain) |
| 1262 | { |
| 1263 | shownNotifications.append(entry.id); |
| 1264 | } |
| 1265 | } |
| 1266 | } |
| 1267 | APPLICATION->settings()->set("ShownNotifications", intListToString(shownNotifications)); |
| 1268 | } |
| 1269 | |
| 1270 | void MainWindow::downloadUpdates(GoUpdate::Status status) |
| 1271 | { |
nothing calls this directly
no test coverage detected