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:
miruka
2021-01-05 10:57:34 -04:00
parent 0ca8d46eae
commit 1017d02a83
3 changed files with 12 additions and 11 deletions

View File

@@ -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)