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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user