fix: open settings goes to the plugin's page and hides when it has none

This commit is contained in:
LukeGus committed 2026-10-06 22:26:35 -05:00
1 parent d1ddcd3ff9
commit 60024bdd4e
6 files changed
+96 -5

No files matched your search

+4
View File
@@ -1686,6 +1686,10 @@ export function AppShell({
tabLabel,
);
}
// Asking for a page again still goes there after the user moved away
if (type === "settings" && data?.section && data.revealAt === undefined) {
data = { ...data, revealAt: Date.now() };
}
const id = type;
const singletonLabels: Partial<Record<TabType, string>> = {
"host-manager": t("nav.manage"),