From 257b14ee094c0288dee0fecacb73994d83cee95f Mon Sep 17 00:00:00 2001 From: patriceac <48073125+patriceac@users.noreply.github.com> Date: Sun, 12 Mar 2023 01:23:05 -0800 Subject: [PATCH] Notify plugins when image tags get refreshed Image modifiers may be temporarily hidden by plugins like searchable modifier search box, and when restoring a task (e.g. use settings) the image modifier s copied with the hidden class set, which makes it look like it's missing. By notifying plugins that the image tags have been refreshed, it allows it to act accordingly (in this case by making sure image tags are visible). --- ui/media/js/image-modifiers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/media/js/image-modifiers.js b/ui/media/js/image-modifiers.js index 9d80584d..c1795c7b 100644 --- a/ui/media/js/image-modifiers.js +++ b/ui/media/js/image-modifiers.js @@ -261,6 +261,7 @@ function refreshTagsList() { let brk = document.createElement('br') brk.style.clear = 'both' editorModifierTagsList.appendChild(brk) + document.dispatchEvent(new Event('refreshImageModifiers')) // notify plugins that the image tags have been refreshed } function toggleCardState(modifierName, makeActive) {