From 6cb52e44038550f19317832849194a74e5d29bb8 Mon Sep 17 00:00:00 2001 From: Mic Date: Fri, 6 Feb 2026 00:00:00 +0100 Subject: [PATCH] await added to wait before saying that the new prompts are saved. --- pages/customprompts/mzta-custom-prompts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/customprompts/mzta-custom-prompts.js b/pages/customprompts/mzta-custom-prompts.js index 98c0b1bb..58bcbf04 100644 --- a/pages/customprompts/mzta-custom-prompts.js +++ b/pages/customprompts/mzta-custom-prompts.js @@ -1279,7 +1279,7 @@ async function saveAll() { setMessage(browser.i18n.getMessage('customPrompts_saving_custom_prompts')); await setCustomPrompts(newCustomPrompts); setMessage(browser.i18n.getMessage('customPrompts_reloading_menus')); - browser.runtime.sendMessage({command: "reload_menus"}); + await browser.runtime.sendMessage({command: "reload_menus"}); setMessage(browser.i18n.getMessage('customPrompts_saved'),'green'); msgTimeout = setTimeout(() => { clearMessage();