added a "script executor" ribbon widget

This commit is contained in:
zadam
2022-12-20 23:46:44 +01:00
parent 7a46159539
commit ea006993f6
4 changed files with 75 additions and 1 deletions

View File

@@ -82,7 +82,12 @@ function updateDisplayedShortcuts($container) {
if (action) {
const title = $(el).attr('title');
const shortcuts = action.effectiveShortcuts.join(', ');
const newTitle = !title || !title.trim() ? shortcuts : `${title} (${shortcuts})`;
if (title?.includes(shortcuts)) {
return;
}
const newTitle = !title?.trim() ? shortcuts : `${title} (${shortcuts})`;
$(el).attr('title', newTitle);
}