Skip to content

Commit

Permalink
fixed adhan not being saved
Browse files Browse the repository at this point in the history
  • Loading branch information
DBChoco committed Feb 18, 2024
1 parent 094f052 commit 8c1bd10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down Expand Up @@ -637,6 +641,7 @@ function loadLanguage(lang){
document.getElementById("v-pills-advanced-tab").innerHTML = '<i class="fa-solid fa-sliders"></i> ' + window.api.getLanguage(lang, "advanced");
document.getElementById("v-pills-adjustments-tab").innerHTML = '<i class="fa-solid fa-clock"></i> ' + window.api.getLanguage(lang, "adjustements");
document.getElementById("v-pills-custom-tab").innerHTML = '<i class="fa-solid fa-stopwatch"></i> ' + window.api.getLanguage(lang, "customTimes");
document.getElementById("v-pills-reminder-tab").innerHTML = '<i class="fa-solid fa-bell"></i> ' + window.api.getLanguage(lang, "reminder");
document.getElementById("v-pills-quran-tab").innerHTML = '<i class="fa-solid fa-book-quran"></i> ' + window.api.getLanguage(lang, "quran");

document.getElementById("return").innerHTML = '<i class="fa fa-arrow-circle-left"></i> ' + window.api.getLanguage(lang, "return");
Expand Down

0 comments on commit 8c1bd10

Please sign in to comment.