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

Method notificationsChanged

launcher/ui/MainWindow.cpp:1251–1268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1249 return slist.join(',');
1250}
1251void 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
1270void MainWindow::downloadUpdates(GoUpdate::Status status)
1271{

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