From d1cb5269f6dcda9addd8570457369b26cde6ddcf Mon Sep 17 00:00:00 2001 From: DominikDoom Date: Thu, 10 Jul 2025 18:47:55 +0200 Subject: [PATCH] Fix setup never running --- javascript/tagAutocomplete.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/javascript/tagAutocomplete.js b/javascript/tagAutocomplete.js index 28fc726..381be26 100644 --- a/javascript/tagAutocomplete.js +++ b/javascript/tagAutocomplete.js @@ -1653,10 +1653,11 @@ async function setup() { await TacUtils.processQueue(TAC.Ext.QUEUE_AFTER_SETUP, null); } var tacLoading = false; +var tacSetupDone = false; onUiUpdate(async () => { if (tacLoading) return; if (Object.keys(opts).length === 0) return; - if (TAC.CFG) return; + if (tacSetupDone) return; tacLoading = true; // Get our tag base path from the temp file TAC.Globals.tagBasePath = await TacUtils.readFile(`tmp/tagAutocompletePath.txt`); @@ -1665,4 +1666,5 @@ onUiUpdate(async () => { // Rest of setup setup(); tacLoading = false; + tacSetupDone = true; });