fix for #1317
This commit is contained in:
parent
6cf2717ede
commit
3b19a66dd4
@ -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,
|
|
||||||
GuiMessage(tr("How do I look?"),
|
if (toasts != nullptr) {
|
||||||
tr("Just testing new notifications settings. "
|
toasts->resetNotifications(true);
|
||||||
"That's all."),
|
toasts->showNotification(Notification::Event::GeneralEvent,
|
||||||
QSystemTrayIcon::MessageIcon::Warning));
|
GuiMessage(tr("How do I look?"),
|
||||||
|
tr("Just testing new notifications settings. "
|
||||||
|
"That's all."),
|
||||||
|
QSystemTrayIcon::MessageIcon::Warning));
|
||||||
|
}
|
||||||
|
|
||||||
onEndSaveSettings();
|
onEndSaveSettings();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user