mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 23: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) {
|
if (wrapper) {
|
||||||
root.allWrappers.push(wrapper);
|
root.allWrappers.push(wrapper);
|
||||||
const shouldSave = !isTransient && _shouldSaveToHistory(notif.urgency);
|
if (!isTransient) {
|
||||||
if (shouldSave) {
|
|
||||||
root.notifications.push(wrapper);
|
root.notifications.push(wrapper);
|
||||||
_trimStored();
|
_trimStored();
|
||||||
root.addToHistory(wrapper);
|
if (_shouldSaveToHistory(notif.urgency)) {
|
||||||
|
root.addToHistory(wrapper);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Qt.callLater(() => {
|
Qt.callLater(() => {
|
||||||
_initWrapperPersistence(wrapper);
|
_initWrapperPersistence(wrapper);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user