mirror of
https://github.com/wassname/Mostly-Harmless.git
synced 2026-06-27 16:10:28 +08:00
Upon request by chromakode, the minimum time for orangered notification intervals is now five minutes.
This commit is contained in:
@@ -493,12 +493,6 @@
|
||||
"orangered_sound_preview": {
|
||||
"message": "Preview the notification sound"
|
||||
},
|
||||
"orangered_interval_30_seconds": {
|
||||
"message": "Check every 30 seconds"
|
||||
},
|
||||
"orangered_interval_one_minute": {
|
||||
"message": "Check every minute"
|
||||
},
|
||||
"orangered_interval_minutes": {
|
||||
"message": "Check every $NUM$ minutes",
|
||||
"placeholders": {
|
||||
|
||||
@@ -94,15 +94,11 @@ this.manifest = {
|
||||
"name": "mailInterval",
|
||||
"type": "slider",
|
||||
"label": "",
|
||||
"max": 5,
|
||||
"min": 0,
|
||||
"max": 15,
|
||||
"min": 5,
|
||||
"step": 1,
|
||||
"display": true,
|
||||
"displayModifier": function (value) {
|
||||
if (value === 0)
|
||||
return chrome.i18n.getMessage('orangered_interval_30_seconds');
|
||||
else if (value === 1)
|
||||
return chrome.i18n.getMessage('orangered_interval_one_minute');
|
||||
return chrome.i18n.getMessage('orangered_interval_minutes', value.toString());
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -818,7 +818,7 @@ Background.prototype.watchMail = function () {
|
||||
function showNotification (hasMail) {
|
||||
var notification, notificationTimeout, mailInterval;
|
||||
|
||||
mailInterval = (settings.get('mailInterval') === 0) ? 1000 * 30 : settings.get('mailInterval') * 1000 * 60;
|
||||
mailInterval = settings.get('mailInterval') * 1000 * 60;
|
||||
|
||||
if (hasMail === true) {
|
||||
if (settings.get('mailSound') === true) {
|
||||
|
||||
Reference in New Issue
Block a user