Fix crash & update translations

This commit is contained in:
Oleg Korshul
2024-06-18 01:22:24 +03:00
parent 60fe9eee91
commit 4a17d82004
7 changed files with 32 additions and 10 deletions

View File

@ -263,7 +263,11 @@ ace.config.loadModule('ace/ext/html_beautify', function (beautify) {
if (currentElement === activeElement)
return;
macrosList.insertBefore(activeElement, nextElement);
try {
macrosList.insertBefore(activeElement, nextElement);
} catch (err) {
return;
}
let indNext = Content.macrosArray.findIndex(function(el) {
return (nextElement && el.name == nextElement.innerText)
})
@ -287,7 +291,11 @@ ace.config.loadModule('ace/ext/html_beautify', function (beautify) {
if (currentElement === activeElement)
return;
functionList.insertBefore(activeElement, nextElement);
try {
functionList.insertBefore(activeElement, nextElement);
} catch (err) {
return;
}
let indNext = CustomFunctions.macrosArray.findIndex(function(el) {
return (nextElement && el.name == nextElement.innerText)
})
@ -437,6 +445,8 @@ ace.config.loadModule('ace/ext/html_beautify', function (beautify) {
window.onItemClick = onItemClick;
function onClickCC(event) {
if (!event)
return;
event.preventDefault();
event.stopPropagation();
const srcElement = event.srcElement;

View File

@ -12,5 +12,7 @@
"Unmake autostart": "Zrušit automatické spuštění",
"Custom function": "Vlastní funkce",
"Custom functions": "Vlastní funkce",
"Ok": "OK"
"Ok": "OK",
"Add macros": "Přidejte makra",
"Add custom function": "Přidejte vlastní funkce"
}

View File

@ -12,5 +12,7 @@
"Unmake autostart": "Deshacer el inicio automático",
"Custom function": "Función personalizada",
"Custom functions": "Funciones personalizadas",
"Ok": "OK"
"Ok": "OK",
"Add macros": "Añadir macros",
"Add custom function": "Añadir función personalizada"
}

View File

@ -12,5 +12,7 @@
"Unmake autostart": "Annuler le démarrage automatique",
"Custom function": "Fonction personnalisée",
"Custom functions": "Fonctions personnalisées",
"Ok": "OK"
"Ok": "OK",
"Add macros": "Ajouter des macros",
"Add custom function": "Ajouter une fonction personnalisée"
}

View File

@ -12,5 +12,7 @@
"Unmake autostart": "Ativar o início automático",
"Custom function": "Função personalizada",
"Custom functions": "Funções personalizadas",
"Ok": "OK"
"Ok": "OK",
"Add macros": "Adicionar macros",
"Add custom function": "Adicionar função personalizada"
}

View File

@ -12,5 +12,7 @@
"Unmake autostart": "Отменить автозапуск",
"Custom function": "Пользовательская функция",
"Custom functions": "Пользовательские функции",
"Ok": "OK"
"Ok": "OK",
"Add macros": "Добавить макросы",
"Add custom function": "Добавить пользовательскую функцию"
}

View File

@ -10,7 +10,9 @@
"Copy": "副本",
"Make autostart": "自动启动",
"Unmake autostart": "取消自动启动",
"Custom function": "自定义功能",
"Custom functions": "自定义功能",
"Ok": "确定"
"Custom function": "自定义函数",
"Custom functions": "自定义函数",
"Ok": "确定",
"Add macros": "添加宏",
"Add custom function": "添加自定义函数"
}