This commit is contained in:
Martin Rotter 2024-03-15 13:18:44 +01:00
parent 6cf2717ede
commit 3b19a66dd4

View File

@ -99,12 +99,16 @@ void SettingsNotifications::saveSettings() {
m_ui.m_cbCustomNotificationsPosition->currentData() m_ui.m_cbCustomNotificationsPosition->currentData()
.value<ToastNotificationsManager::NotificationPosition>()); .value<ToastNotificationsManager::NotificationPosition>());
qApp->toastNotifications()->resetNotifications(true); auto* toasts = qApp->toastNotifications();
qApp->toastNotifications()->showNotification(Notification::Event::GeneralEvent,
if (toasts != nullptr) {
toasts->resetNotifications(true);
toasts->showNotification(Notification::Event::GeneralEvent,
GuiMessage(tr("How do I look?"), GuiMessage(tr("How do I look?"),
tr("Just testing new notifications settings. " tr("Just testing new notifications settings. "
"That's all."), "That's all."),
QSystemTrayIcon::MessageIcon::Warning)); QSystemTrayIcon::MessageIcon::Warning));
}
onEndSaveSettings(); onEndSaveSettings();
} }