From 0ff1d63cde00fbbaf3452cd683f5832879643ad4 Mon Sep 17 00:00:00 2001 From: Eugene Fox Date: Thu, 8 May 2025 10:05:53 +0300 Subject: [PATCH] fix: close firefox sidebar when list location changes --- entrypoints/options/layouts/GeneralSection.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoints/options/layouts/GeneralSection.tsx b/entrypoints/options/layouts/GeneralSection.tsx index 0c47a83..ab1a0fd 100644 --- a/entrypoints/options/layouts/GeneralSection.tsx +++ b/entrypoints/options/layouts/GeneralSection.tsx @@ -27,6 +27,9 @@ export default function GeneralSection(): React.ReactElement if (e.optionValue === "popup" && contextAction !== "open") setContextAction("open"); + if (import.meta.env.FIREFOX && e.optionValue !== "sidebar") + browser.sidebarAction.close(); + setListLocation(e.optionValue as ListLocationType); };