Skip to content

Commit

Permalink
more to go
Browse files Browse the repository at this point in the history
  • Loading branch information
HThuren committed Dec 11, 2023
1 parent 3dbe0b6 commit 12c6574
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/js/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ const languageISOcode = ['ca-ES', 'da-DK', 'de-DE', 'en-US', 'es-ES', 'eu-ES', '
*/
function getCurrentLocaleISO() {
const isoCodeIndex = languagesAvailables.indexOf(i18next.language);
if (isoCodeIndex === -1)
if (isoCodeIndex === -1) {
return 'en-US';
}
return languageISOcode[isoCodeIndex];
}

Expand Down
14 changes: 5 additions & 9 deletions src/js/tabs/auxiliary.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ function inBuildMap(map, name) {
}
for (let value of map) {
if (name == value.buildKey) {
for (let y = 0; y < value.buildOption.length; y++) {
if (FC.CONFIG.buildOptions.includes(value.buildOption[y])) {
for (let option of value.buildOption) {
if (FC.CONFIG.buildOptions.includes(option)) {
return true;
}
}
Expand Down Expand Up @@ -479,9 +479,7 @@ auxiliary.initialize = function (callback) {
if (range.start >= range.end) {
continue; // invalid!
}

addRangeToMode(newMode, modeRange.auxChannelIndex, modeRangeExtra.modeLogic, range);

} else {
addLinkedToMode(newMode, modeRangeExtra.modeLogic, modeRangeExtra.linkedTo);
}
Expand Down Expand Up @@ -682,11 +680,9 @@ auxiliary.initialize = function (callback) {
if ( ! isSelectedMode(modeList, FC.AUX_CONFIG[i])) {
modeElement.toggle( false);
}
else {
if ( ! isSelectedMode(modeList, FC.AUX_CONFIG[i]) && modeElement.find(' .range').length == 0 && modeElement.find(' .link').length == 0) {
// unused mode
modeElement.toggle(!hideUnused);
}
else if ( ! isSelectedMode(modeList, FC.AUX_CONFIG[i]) && modeElement.find(' .range').length == 0 && modeElement.find(' .link').length == 0) {
// unused mode
modeElement.toggle(!hideUnused);
}
}

Expand Down

0 comments on commit 12c6574

Please sign in to comment.