From 8c1bd109ffee5a06067e97383d7866bdca159849 Mon Sep 17 00:00:00 2001 From: DarkBlackChocolate Date: Sun, 18 Feb 2024 21:21:54 +0100 Subject: [PATCH] fixed adhan not being saved --- src/common/language.js | 6 +++++- src/settings/settings.js | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/common/language.js b/src/common/language.js index 2431a9b..da3578c 100644 --- a/src/common/language.js +++ b/src/common/language.js @@ -147,7 +147,11 @@ var dict = { "shortAllahuAkbar": "Short sound - Mishary Rashid Alafasy", "hijriAdjTitle" : "Hijri date adjustments", "hijriAdjText" : "Hijri date difference", - + "reminder" : "Adhan Reminder", + "reminderBA" : "Reminder before Adhan", + "reminderCheck" : "Enable Reminder", + "minBefore" : "Minutes before", + "jumReminder" : "Jumuah Reminder" }, fr: { 'settings': 'Options', //settingsTitle diff --git a/src/settings/settings.js b/src/settings/settings.js index 8e0ecb4..e12db16 100644 --- a/src/settings/settings.js +++ b/src/settings/settings.js @@ -434,6 +434,10 @@ async function loadAdhan(){ document.getElementById('customAdhanFajrFileButton').value = shortenedString(file.split("/")[file.split("/").length - 1]) console.debug("Loaded: " + file) }) + + if (!customCheck.checked){ + document.getElementById("adhanList").value = adhanFile.adhan.path + } } function shortenedString(text){ @@ -637,6 +641,7 @@ function loadLanguage(lang){ document.getElementById("v-pills-advanced-tab").innerHTML = ' ' + window.api.getLanguage(lang, "advanced"); document.getElementById("v-pills-adjustments-tab").innerHTML = ' ' + window.api.getLanguage(lang, "adjustements"); document.getElementById("v-pills-custom-tab").innerHTML = ' ' + window.api.getLanguage(lang, "customTimes"); + document.getElementById("v-pills-reminder-tab").innerHTML = ' ' + window.api.getLanguage(lang, "reminder"); document.getElementById("v-pills-quran-tab").innerHTML = ' ' + window.api.getLanguage(lang, "quran"); document.getElementById("return").innerHTML = ' ' + window.api.getLanguage(lang, "return");