diff --git a/public/_locales/ca/messages.json b/public/_locales/ca/messages.json index 23eba2c..6433922 100644 --- a/public/_locales/ca/messages.json +++ b/public/_locales/ca/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Si activeu més d'un compte, s'activa l'opció de filtre d'estadístiques \"Tots els comptes\" per a la visualització de suma i comparació." }, "autoRefresh": { - "description": "Activa el reprocessament automàtic de les dades estadístiques en segon pla. Estableix un interval de temps en minuts (mínim de 5).", + "description": "Activa el processament automàtic de les dades estadístiques en segon pla. Si està actiu, totes les carpetes es tornaran a analitzar encara que la pàgina d'estadístiques estigui tancada. Estableix un interval de temps en minuts (mínim de 30).", "label": "Processament automàtic" }, "cache": { diff --git a/public/_locales/cs/messages.json b/public/_locales/cs/messages.json index e210ba3..e195600 100644 --- a/public/_locales/cs/messages.json +++ b/public/_locales/cs/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Aktivací více než jednoho účtu povolíte filtr „Všechny účty“ pro zobrazení součtu a porovnání." }, "autoRefresh": { - "description": "Povolte automatické přepracování statistických dat na pozadí. Nastavte časový interval v minutách (minimálně 5).", + "description": "Povolte automatické zpracování statistických dat na pozadí. Je-li aktivní, budou všechny složky znovu prohledány, i když je stránka statistik zavřená. Nastavte časový interval v minutách (minimálně 30).", "label": "Automatické zpracování" }, "cache": { diff --git a/public/_locales/de/messages.json b/public/_locales/de/messages.json index 1868a75..1e902b4 100644 --- a/public/_locales/de/messages.json +++ b/public/_locales/de/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Wenn mehr als ein Konto aktiviert ist, ist die Filteroption \"Alle Konten\" für Summen- und Vergleichsansicht verfügbar." }, "autoRefresh": { - "description": "Aktiviert die automatische Berechnung der Statistikdaten im Hintergrund. Es kann das Zeitintervall in Minuten definiert werden (mindestens 5).", + "description": "Aktiviert die automatische Berechnung der Statistikdaten im Hintergrund. Wenn aktiv, werden alle Ordner neu durchsucht, auch wenn die Statistikseite geschlossen ist. Es kann das Zeitintervall in Minuten definiert werden (mindestens 30).", "label": "Automatische Berechnung" }, "cache": { diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index e5ba9f6..3a0f845 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Activating more than one account enables the 'All Accounts' stats filter option for sum and comparison view." }, "autoRefresh": { - "description": "Enable automatic reprocessing of the stats data in the background. Set a time interval in minutes (minimum of 5).", + "description": "Enable automatic processing of the stats data in the background. If active, all folders will be rescanned even if the stats page is closed. Set a time interval in minutes (minimum of 30).", "label": "Automatic Processing" }, "cache": { diff --git a/public/_locales/es/messages.json b/public/_locales/es/messages.json index cb982f0..b1e4c10 100644 --- a/public/_locales/es/messages.json +++ b/public/_locales/es/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Al activar más de una cuenta, se habilita la opción de filtro de estadísticas «Todas las cuentas» para la vista de suma y comparación." }, "autoRefresh": { - "description": "Habilita el reprocesamiento automático de los datos de estadísticas en segundo plano. Establezca un intervalo de tiempo en minutos (mínimo de 5).", + "description": "Habilita el procesamiento automático de los datos de estadísticas en segundo plano. Si está activo, todas las carpetas se volverán a analizar aunque la página de estadísticas esté cerrada. Establezca un intervalo de tiempo en minutos (mínimo de 30).", "label": "Procesamiento automático" }, "cache": { diff --git a/public/_locales/fi/messages.json b/public/_locales/fi/messages.json index 73301eb..e0e1e7f 100644 --- a/public/_locales/fi/messages.json +++ b/public/_locales/fi/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Useamman kuin yhden tilin aktivoiminen mahdollistaa ‘Kaikki tilit’ -suodatusvaihtoehdon kokonaistilastoissa ja vertailunäkymässä." }, "autoRefresh": { - "description": "Ota käyttöön tilastotietojen automaattinen uudelleenkäsittely taustalla. Aseta aikaväli minuutteina (vähintään 5).", + "description": "Ota käyttöön tilastotietojen automaattinen käsittely taustalla. Kun asetus on käytössä, kaikki kansiot käydään läpi uudelleen, vaikka tilastosivu olisi suljettu. Aseta aikaväli minuutteina (vähintään 30).", "label": "Automaattinen käsittely" }, "cache": { diff --git a/public/_locales/fr/messages.json b/public/_locales/fr/messages.json index d147bf1..413b5c6 100644 --- a/public/_locales/fr/messages.json +++ b/public/_locales/fr/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "L'activation de plusieurs comptes active l'option de filtre de statistiques «Tous les comptes» pour la vue de somme et de comparaison." }, "autoRefresh": { - "description": "Activez le retraitement automatique des données statistiques en arrière-plan. Définissez un intervalle de temps en minutes (minimum de 5).", + "description": "Activez le traitement automatique des données statistiques en arrière-plan. Si cette option est active, tous les dossiers seront réanalysés même si la page des statistiques est fermée. Définissez un intervalle de temps en minutes (minimum de 30).", "label": "Traitement automatique" }, "cache": { diff --git a/public/_locales/gl/messages.json b/public/_locales/gl/messages.json index d119b6d..7d3b869 100644 --- a/public/_locales/gl/messages.json +++ b/public/_locales/gl/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Activar máis dunha conta habilita a opción de filtro de estatísticas de \"Todas as contas\" para a vista de suma e comparación." }, "autoRefresh": { - "description": "Activa o reprocesamento automático dos datos estatísticos en segundo plano. Establece un intervalo de tempo en minutos (mínimo de 5).", + "description": "Activa o procesamento automático dos datos estatísticos en segundo plano. Se está activo, todos os cartafoles volveranse analizar aínda que a páxina de estatísticas estea pechada. Establece un intervalo de tempo en minutos (mínimo de 30).", "label": "Procesamento automático" }, "cache": { diff --git a/public/_locales/hi/messages.json b/public/_locales/hi/messages.json index e5dac07..50d05d8 100644 --- a/public/_locales/hi/messages.json +++ b/public/_locales/hi/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "एक से अधिक खाते सक्रिय करने से योग और तुलना दृश्य के लिए 'सभी खाते' आँकड़े फ़िल्टर विकल्प सक्षम हो जाता है।" }, "autoRefresh": { - "description": "पृष्ठभूमि में आँकड़े डेटा के स्वचालित पुन: प्रसंस्करण को सक्षम करें। मिनटों में एक समय अंतराल सेट करें (न्यूनतम 5)।", + "description": "पृष्ठभूमि में आँकड़े डेटा के स्वचालित प्रसंस्करण को सक्षम करें। सक्रिय होने पर, आँकड़े पृष्ठ बंद होने पर भी सभी फ़ोल्डर फिर से स्कैन किए जाएँगे। मिनटों में एक समय अंतराल सेट करें (न्यूनतम 30)।", "label": "स्वचालित प्रोसेसिंग" }, "cache": { diff --git a/public/_locales/hu/messages.json b/public/_locales/hu/messages.json index 8d6b9cc..d9296b8 100644 --- a/public/_locales/hu/messages.json +++ b/public/_locales/hu/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Több fiók aktiválása engedélyezi az „Összes fiók” statisztika szűrő opciót összeg és összehasonlító nézethez." }, "autoRefresh": { - "description": "Engedélyezze a statisztikai adatok automatikus újrafeldolgozását a háttérben. Állítson be egy időintervallumot percben (legalább 5).", + "description": "Engedélyezze a statisztikai adatok automatikus feldolgozását a háttérben. Ha aktív, az összes mappa újra átvizsgálásra kerül akkor is, ha a statisztikai oldal be van zárva. Állítson be egy időintervallumot percben (legalább 30).", "label": "Automatikus feldolgozás" }, "cache": { diff --git a/public/_locales/id/messages.json b/public/_locales/id/messages.json index 162d1b5..03a6633 100644 --- a/public/_locales/id/messages.json +++ b/public/_locales/id/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Mengaktifkan lebih dari satu akun memungkinkan opsi filter statistik 'Semua Akun' untuk tampilan jumlah dan perbandingan." }, "autoRefresh": { - "description": "Aktifkan pemrosesan ulang otomatis data statistik di latar belakang. Tetapkan interval waktu dalam menit (minimal 5).", + "description": "Aktifkan pemrosesan otomatis data statistik di latar belakang. Jika aktif, semua folder akan dipindai ulang meskipun halaman statistik ditutup. Tetapkan interval waktu dalam menit (minimal 30).", "label": "Pemrosesan Otomatis" }, "cache": { diff --git a/public/_locales/it/messages.json b/public/_locales/it/messages.json index 9183794..945c072 100644 --- a/public/_locales/it/messages.json +++ b/public/_locales/it/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "L'attivazione di più di un account abilita l'opzione di filtro delle statistiche \"Tutti gli account\" per la visualizzazione della somma e del confronto." }, "autoRefresh": { - "description": "Abilita la rielaborazione automatica dei dati delle statistiche in background. Impostare un intervallo di tempo in minuti (minimo 5).", + "description": "Abilita l'elaborazione automatica dei dati delle statistiche in background. Se attiva, tutte le cartelle verranno scansionate di nuovo anche se la pagina delle statistiche è chiusa. Impostare un intervallo di tempo in minuti (minimo 30).", "label": "Elaborazione automatica" }, "cache": { diff --git a/public/_locales/ja/messages.json b/public/_locales/ja/messages.json index 31b378a..6958991 100644 --- a/public/_locales/ja/messages.json +++ b/public/_locales/ja/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "複数のアカウントをアクティブ化すると、合計ビューと比較ビューの[すべてのアカウント]統計フィルターオプションが有効になります。" }, "autoRefresh": { - "description": "バックグラウンドで統計データの自動再処理を有効にします。時間間隔を分単位で設定します (最小 5)。", + "description": "バックグラウンドで統計データの自動処理を有効にします。有効にすると、統計ページを閉じていてもすべてのフォルダーが再スキャンされます。時間間隔を分単位で設定します (最小 30)。", "label": "自動処理" }, "cache": { diff --git a/public/_locales/nl/messages.json b/public/_locales/nl/messages.json index 6bc038d..3250d39 100644 --- a/public/_locales/nl/messages.json +++ b/public/_locales/nl/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Als u meer dan één account activeert, is de optie 'Alle accounts' statistieken filter optie voor som- en vergelijkingsweergave." }, "autoRefresh": { - "description": "Automatische herverwerking van de statistische gegevens op de achtergrond mogelijk maken. Stel een tijdsinterval in minuten in (minimaal 5).", + "description": "Automatische verwerking van de statistische gegevens op de achtergrond mogelijk maken. Indien actief, worden alle mappen opnieuw gescand, ook als de statistiekpagina gesloten is. Stel een tijdsinterval in minuten in (minimaal 30).", "label": "Automatische verwerking" }, "cache": { diff --git a/public/_locales/pl/messages.json b/public/_locales/pl/messages.json index 5f6772d..0f354df 100644 --- a/public/_locales/pl/messages.json +++ b/public/_locales/pl/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Aktywowanie więcej niż jednego konta powoduje włączenie opcji filtrowania statystyk \"Wszystkie konta\" w widoku sum i porównań." }, "autoRefresh": { - "description": "Włącz automatyczne ponowne przetwarzanie danych statystycznych w tle. Ustaw odstęp czasu w minutach (minimum 5).", + "description": "Włącz automatyczne przetwarzanie danych statystycznych w tle. Jeśli opcja jest aktywna, wszystkie foldery będą ponownie skanowane, nawet gdy strona statystyk jest zamknięta. Ustaw odstęp czasu w minutach (minimum 30).", "label": "Automatyczne przetwarzanie" }, "cache": { diff --git a/public/_locales/pt-BR/messages.json b/public/_locales/pt-BR/messages.json index 6aa7865..3978716 100644 --- a/public/_locales/pt-BR/messages.json +++ b/public/_locales/pt-BR/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Ativar mais de uma conta habilita a opção de filtro de estatísticas 'Todas as Contas' para visualização de soma e comparação." }, "autoRefresh": { - "description": "Ative o reprocessamento automático dos dados estatísticos em segundo plano. Defina um intervalo de tempo em minutos (mínimo de 5).", + "description": "Ative o processamento automático dos dados estatísticos em segundo plano. Se estiver ativo, todas as pastas serão verificadas novamente mesmo que a página de estatísticas esteja fechada. Defina um intervalo de tempo em minutos (mínimo de 30).", "label": "Processamento automático" }, "cache": { diff --git a/public/_locales/pt/messages.json b/public/_locales/pt/messages.json index e0f9938..aff122d 100644 --- a/public/_locales/pt/messages.json +++ b/public/_locales/pt/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Ativar mais de uma conta habilita a opção de filtro de estatísticas 'Todas as contas' para visualização de soma e comparação." }, "autoRefresh": { - "description": "Ative o reprocessamento automático dos dados de estatísticas em segundo plano. Defina um intervalo de tempo em minutos (mínimo de 5).", + "description": "Ative o processamento automático dos dados de estatísticas em segundo plano. Se estiver ativo, todas as pastas serão analisadas novamente mesmo que a página de estatísticas esteja fechada. Defina um intervalo de tempo em minutos (mínimo de 30).", "label": "Processamento automático" }, "cache": { diff --git a/public/_locales/ru/messages.json b/public/_locales/ru/messages.json index b159847..ec64d78 100644 --- a/public/_locales/ru/messages.json +++ b/public/_locales/ru/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Выбор более одного аккаунта включает опцию фильтра 'Все Аккаунты' для суммы и сравнения" }, "autoRefresh": { - "description": "Включите автоматическую повторную обработку статистических данных в фоновом режиме. Установите временной интервал в минутах (минимум 5).", + "description": "Включите автоматическую обработку статистических данных в фоновом режиме. Если параметр активен, все папки будут повторно сканироваться, даже если страница статистики закрыта. Установите временной интервал в минутах (минимум 30).", "label": "Автоматическая обработка" }, "cache": { diff --git a/public/_locales/sk/messages.json b/public/_locales/sk/messages.json index 8044d34..da23d8a 100644 --- a/public/_locales/sk/messages.json +++ b/public/_locales/sk/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Aktiváciou viac ako jedného účtu aktivujete možnosť filtrovania štatistík \"Všetky účty\" pre zobrazenie súčtu a porovnania." }, "autoRefresh": { - "description": "Povoliť automatické opätovné spracovanie údajov štatistík na pozadí. Nastavte časový interval v minútach (minimálne 5).", + "description": "Povoliť automatické spracovanie údajov štatistík na pozadí. Ak je aktívne, všetky priečinky sa znova prehľadajú, aj keď je stránka štatistík zatvorená. Nastavte časový interval v minútach (minimálne 30).", "label": "Automatické spracovanie" }, "cache": { diff --git a/public/_locales/sv/messages.json b/public/_locales/sv/messages.json index b58e1fd..dd10813 100644 --- a/public/_locales/sv/messages.json +++ b/public/_locales/sv/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Aktivering av mer än ett konto aktiverar filteralternativet 'Alla Konton' för statistik för summa och jämförelse." }, "autoRefresh": { - "description": "Aktivera automatisk upparbetning av statistikdata i bakgrunden. Ställ in ett tidsintervall i minuter (minst 5).", + "description": "Aktivera automatisk bearbetning av statistikdata i bakgrunden. Om aktivt genomsöks alla mappar på nytt även när statistiksidan är stängd. Ställ in ett tidsintervall i minuter (minst 30).", "label": "Automatisk Bearbetning" }, "cache": { diff --git a/public/_locales/th/messages.json b/public/_locales/th/messages.json index dc55b3f..e7b79a5 100644 --- a/public/_locales/th/messages.json +++ b/public/_locales/th/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "การเปิดใช้งานมากกว่าหนึ่งบัญชีทำให้ตัวเลือกตัวกรองสถิติ 'บัญชีทั้งหมด' สำหรับมุมมองผลรวมและการเปรียบเทียบ" }, "autoRefresh": { - "description": "เปิดใช้งานการประมวลผลข้อมูลสถิติในพื้นหลังโดยอัตโนมัติตั้งช่วงเวลาเป็นนาที (ต่ำสุด 5)", + "description": "เปิดใช้งานการประมวลผลข้อมูลสถิติในพื้นหลังโดยอัตโนมัติ หากเปิดใช้งาน โฟลเดอร์ทั้งหมดจะถูกสแกนใหม่แม้ว่าหน้าสถิติจะปิดอยู่ ตั้งช่วงเวลาเป็นนาที (ต่ำสุด 30)", "label": "การประมวลผลอัตโนมัติ" }, "cache": { diff --git a/public/_locales/tr/messages.json b/public/_locales/tr/messages.json index 211d84d..cf30a38 100644 --- a/public/_locales/tr/messages.json +++ b/public/_locales/tr/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Birden fazla hesabı etkinleştirmek, toplam ve karşılaştırma görünümü için 'Tüm Hesaplar' istatistik filtresi seçeneğini etkinleştirir." }, "autoRefresh": { - "description": "Arka planda istatistik verilerinin otomatik olarak yeniden işlenmesini etkinleştirin. Dakika olarak bir zaman aralığı ayarlayın (en az 5).", + "description": "Arka planda istatistik verilerinin otomatik olarak işlenmesini etkinleştirin. Etkinse, istatistik sayfası kapalı olsa bile tüm klasörler yeniden taranır. Dakika olarak bir zaman aralığı ayarlayın (en az 30).", "label": "Otomatik İşleme" }, "cache": { diff --git a/public/_locales/uk/messages.json b/public/_locales/uk/messages.json index 53bc7b5..bc83913 100644 --- a/public/_locales/uk/messages.json +++ b/public/_locales/uk/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Активувавши кілька облікових записів, увімкнеться фільтр статистики «Усі облікові записи» для зведеного перегляду і порівняння." }, "autoRefresh": { - "description": "Увімкніть автоматичну обробку даних статистики у фоновому режимі. Встановіть часовий інтервал у хвилинах (мінімум 5).", + "description": "Увімкніть автоматичну обробку даних статистики у фоновому режимі. Якщо параметр активний, усі папки буде повторно скановано, навіть коли сторінку статистики закрито. Встановіть часовий інтервал у хвилинах (мінімум 30).", "label": "Автоматична обробка" }, "cache": { diff --git a/public/_locales/uz/messages.json b/public/_locales/uz/messages.json index d504b04..7b1731f 100644 --- a/public/_locales/uz/messages.json +++ b/public/_locales/uz/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "Бир нечта аккаунтларни фаоллаштириш сумма ва таққослаш кўриниши учун барча ҳисоблар статистикасини филтрлаш опсиясини ёқади." }, "autoRefresh": { - "description": "Фонда статистика маълумотларини автоматик қайта ишлашни ёқинг. Вақт оралиғини дақиқаларда белгиланг (камида 5).", + "description": "Фонда статистика маълумотларини автоматик ишлашни ёқинг. Агар фаол бўлса, статистика саҳифаси ёпиқ бўлса ҳам, барча жилдлар қайта текширилади. Вақт оралиғини дақиқаларда белгиланг (камида 30).", "label": "Автоматик Ишлов Бериш" }, "cache": { diff --git a/public/_locales/zh-Hans-CN/messages.json b/public/_locales/zh-Hans-CN/messages.json index 615faaa..a165d27 100644 --- a/public/_locales/zh-Hans-CN/messages.json +++ b/public/_locales/zh-Hans-CN/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "激活一个以上的账户,可以启用 \"所有账户 \"统计过滤选项,以进行汇总和比较查看。" }, "autoRefresh": { - "description": "在后台启用统计数据自动重新处理。以分钟为单位设置时间间隔(最少为 5)。", + "description": "在后台启用统计数据自动处理。启用后,即使统计页面已关闭,也会重新扫描所有文件夹。以分钟为单位设置时间间隔(最少为 30)。", "label": "自动处理" }, "cache": { diff --git a/public/_locales/zh-Hant-TW/messages.json b/public/_locales/zh-Hant-TW/messages.json index 4454484..084a922 100644 --- a/public/_locales/zh-Hant-TW/messages.json +++ b/public/_locales/zh-Hant-TW/messages.json @@ -18,7 +18,7 @@ "sumAndCompare": "激活多個帳戶會啟用“所有帳戶”統計信息過濾器選項以用於總和和比較視圖。" }, "autoRefresh": { - "description": "在背景中啟用自動重新處理統計資料。以分鐘為單位設定時間間隔 (最少 5 個)。", + "description": "在背景中啟用自動處理統計資料。啟用後,即使統計頁面已關閉,也會重新掃描所有資料夾。以分鐘為單位設定時間間隔 (最少 30 分鐘)。", "label": "自動加工" }, "cache": { diff --git a/src/composables/useOptionsData.js b/src/composables/useOptionsData.js index 0f2ce28..08a263a 100644 --- a/src/composables/useOptionsData.js +++ b/src/composables/useOptionsData.js @@ -1,7 +1,7 @@ // Thunderbird messenger.* data engine for the options page. // Call exactly once, from Options.vue - this composable owns all its state internally. import { ref, computed, watch } from 'vue'; -import { defaultColors, defaultOptions } from '@/definitions.js'; +import { defaultColors, defaultOptions, minAutoRefreshInterval } from '@/definitions.js'; import { formatBytes, setTheme } from '@/utils.js'; export function useOptionsData() { @@ -87,17 +87,17 @@ export function useOptionsData() { options.value.autoRefreshInterval++; }; - // decreases auto refresh interval down to limit 5 + // decreases auto refresh interval down to minimum limit const decrementAutoRefreshInterval = () => { - if (options.value.autoRefreshInterval > 5) { + if (options.value.autoRefreshInterval > minAutoRefreshInterval) { options.value.autoRefreshInterval--; } }; // check auto refresh number input to stay in allowed range const checkAutoRefreshInterval = () => { - if (options.value.autoRefreshInterval < 5) { - options.value.autoRefreshInterval = 5; + if (options.value.autoRefreshInterval < minAutoRefreshInterval) { + options.value.autoRefreshInterval = minAutoRefreshInterval; } }; diff --git a/src/definitions.js b/src/definitions.js index 0af4749..947aa47 100644 --- a/src/definitions.js +++ b/src/definitions.js @@ -12,8 +12,8 @@ const defaultOptions = { ordinate: true, tagColors: false, liveCountUp: true, - autoRefresh: true, - autoRefreshInterval: 30, + autoRefresh: false, + autoRefreshInterval: 360, startOfWeek: localStartOfWeek(), addresses: '', includeSubfolders: false, @@ -25,6 +25,9 @@ const defaultOptions = { debug: false, }; +// lower limit in minutes for the automatic background processing interval +const minAutoRefreshInterval = 30; + // tab navigation for stats page const tabsNumbers = { years: 1, @@ -73,6 +76,7 @@ export { accentColors, defaultColors, defaultOptions, + minAutoRefreshInterval, tabsActivity, tabsFolders, tabsLeader, diff --git a/src/engines/backgroundEngine.js b/src/engines/backgroundEngine.js index e63c356..5c92786 100644 --- a/src/engines/backgroundEngine.js +++ b/src/engines/backgroundEngine.js @@ -1,5 +1,5 @@ // background-script: schedules periodic stats reprocessing via messenger.alarms independent from other pages -import { defaultOptions } from '@/definitions.js'; +import { defaultOptions, minAutoRefreshInterval } from '@/definitions.js'; import { filterActiveAccounts } from '@/utils.js'; import { buildAllIdentities, @@ -60,7 +60,10 @@ export const syncAlarm = async () => { const options = await getOptions(); await messenger.alarms.clear(ALARM_NAME); if (options.autoRefresh) { - messenger.alarms.create(ALARM_NAME, { periodInMinutes: Number(options.autoRefreshInterval) }); + // enforce the minimum also for intervals stored before it was raised + messenger.alarms.create(ALARM_NAME, { + periodInMinutes: Math.max(minAutoRefreshInterval, Number(options.autoRefreshInterval)), + }); } }; diff --git a/src/options/AutoRefreshOption.vue b/src/options/AutoRefreshOption.vue index deefa79..cef7f93 100644 --- a/src/options/AutoRefreshOption.vue +++ b/src/options/AutoRefreshOption.vue @@ -24,8 +24,8 @@ id="autoRefreshInterval" type="number" v-model="options.autoRefreshInterval" - placeholder="30" - min="5" + placeholder="360" + :min="minAutoRefreshInterval" @change="checkAutoRefreshInterval()" /> @@ -49,6 +49,7 @@