1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 22:15:38 -05:00

DND Hotfix

This commit is contained in:
purian23
2025-07-21 00:50:33 -04:00
parent 6f54e592ba
commit 92908b6e0e

View File

@@ -73,6 +73,10 @@ Singleton {
}
function isAppBlocked(appName) {
const appKey = appName.toLowerCase();
if (appKey === "notify-send" || appKey === "libnotify") {
return false;
}
return getAppSetting(appName, "blocked", false);
}
@@ -117,14 +121,14 @@ Singleton {
return false;
}
// Check Do Not Disturb mode
if (isInDoNotDisturbMode()) {
// Allow critical notifications if configured
if (allowCriticalInDND && notification.urgency === 2) {
return true;
}
return false;
}
// DND logic temporarily disabled for all notifications
// if (isInDoNotDisturbMode()) {
// // Allow critical notifications if configured
// if (allowCriticalInDND && notification.urgency === 2) {
// return true;
// }
// return false;
// }
return true;
}