mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Merge branch 'main' of github.com:noctalia-dev/noctalia-shell
This commit is contained in:
@@ -140,7 +140,7 @@ Singleton {
|
|||||||
|
|
||||||
// Check if we should save to history based on urgency
|
// Check if we should save to history based on urgency
|
||||||
const saveToHistorySettings = Settings.data.notifications?.saveToHistory;
|
const saveToHistorySettings = Settings.data.notifications?.saveToHistory;
|
||||||
if (saveToHistorySettings) {
|
if (saveToHistorySettings && !notification.transient) {
|
||||||
let shouldSave = true;
|
let shouldSave = true;
|
||||||
switch (data.urgency) {
|
switch (data.urgency) {
|
||||||
case 0: // low
|
case 0: // low
|
||||||
@@ -156,7 +156,7 @@ Singleton {
|
|||||||
if (shouldSave) {
|
if (shouldSave) {
|
||||||
addToHistory(data);
|
addToHistory(data);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (!notification.transient) {
|
||||||
// Default behavior: save all if settings not configured
|
// Default behavior: save all if settings not configured
|
||||||
addToHistory(data);
|
addToHistory(data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user