MCPcopy Create free account
hub / github.com/MultiMC/Launcher / notificationsChanged

Method notificationsChanged

launcher/ui/MainWindow.cpp:1269–1286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1267 return slist.join(',');
1268}
1269void 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
1288void MainWindow::downloadUpdates(GoUpdate::Status status)
1289{

Callers

nothing calls this directly

Calls 12

stringToIntListFunction · 0.85
intListToStringFunction · 0.85
notificationEntriesMethod · 0.80
appendMethod · 0.80
toStringMethod · 0.45
getMethod · 0.45
settingsMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
containsMethod · 0.45
execMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected