Upon request by chromakode, the minimum time for orangered notification intervals is now five minutes.

This commit is contained in:
Kerrick Long
2011-07-19 21:01:57 -05:00
parent 8ad5b33d18
commit c0406c8219
3 changed files with 3 additions and 13 deletions
-6
View File
@@ -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": {
+2 -6
View File
@@ -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
View File
@@ -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) {