mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-01 19:18:28 -04:00
Add option to ignore app-requested notification timeout (#2909)
* Add option to ignore app-requested notification timeout Notifications may include an expireTimeout hint that currently takes precedence over the configured Low/Normal/Critical durations, so popups can disappear earlier (or later) than expected with no interaction involved. Add notificationIgnoreAppTimeout (default off, matching the notification spec) to let users force their own durations regardless of what the app requests. * Update settings search index for new timeout override toggle
This commit is contained in:
@@ -844,6 +844,15 @@ Item {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
settingKey: "notificationIgnoreAppTimeout"
|
||||
tags: ["notification", "timeout", "expire", "app", "override", "duration"]
|
||||
text: I18n.tr("Ignore App-Requested Timeout")
|
||||
description: I18n.tr("Always use the durations above, even if an app requests a shorter or longer one")
|
||||
checked: SettingsData.notificationIgnoreAppTimeout
|
||||
onToggled: checked => SettingsData.set("notificationIgnoreAppTimeout", checked)
|
||||
}
|
||||
}
|
||||
|
||||
SettingsCard {
|
||||
|
||||
Reference in New Issue
Block a user