Change window alert setting names and defaults
- Notifications.alert_time → Notifications.flash_time, more evocative of what these "alerts" actually do - Change default for the above from 0 to 5, since now push rules already control precisely what to enable or disable these alerts for - Notifications.urgent_alert_time → Notifications.highlight_flash_time, "highlight" is the term used in the matrix doc
This commit is contained in:
@@ -29,8 +29,8 @@ QtObject {
|
||||
if (urgencyHint) {
|
||||
const msec =
|
||||
critical ?
|
||||
window.settings.Notifications.urgent_alert_time * 1000 :
|
||||
window.settings.Notifications.alert_time * 1000
|
||||
window.settings.Notifications.highlight_flash_time * 1000 :
|
||||
window.settings.Notifications.flash_time * 1000
|
||||
|
||||
// -1 ? 0 for no time out : msec
|
||||
if (msec !== 0) window.alert(msec === -1 ? 0 : msec)
|
||||
|
Reference in New Issue
Block a user