1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

notifications: fix notifications being completely transient if history is disabled (#1284)

This commit is contained in:
Ethan Todd
2026-01-06 09:39:33 -05:00
committed by GitHub
parent f762f9ae49
commit 1c8ce46f25

View File

@@ -491,13 +491,13 @@ Singleton {
if (wrapper) {
root.allWrappers.push(wrapper);
const shouldSave = !isTransient && _shouldSaveToHistory(notif.urgency);
if (shouldSave) {
if (!isTransient) {
root.notifications.push(wrapper);
_trimStored();
if (_shouldSaveToHistory(notif.urgency)) {
root.addToHistory(wrapper);
}
}
Qt.callLater(() => {
_initWrapperPersistence(wrapper);
});