From 739b57e100c313cf12c7c9b77c171c72cfb1a77a Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 14 Oct 2022 23:43:45 -0400 Subject: add alwaysRender --- frontend/src/components/PluginView.tsx | 2 +- frontend/src/plugin.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/src/components/PluginView.tsx b/frontend/src/components/PluginView.tsx index 2ae0b555..630cc962 100644 --- a/frontend/src/components/PluginView.tsx +++ b/frontend/src/components/PluginView.tsx @@ -26,7 +26,7 @@ const PluginView: VFC = () => { className={joinClassNames(staticClasses.TabGroupPanel, scrollClasses.ScrollPanel, scrollClasses.ScrollY)} style={{ height: '100%' }} > - {visible && activePlugin.content} + {(visible || activePlugin.alwaysRender) && activePlugin.content} ); diff --git a/frontend/src/plugin.ts b/frontend/src/plugin.ts index 630f9775..37348593 100644 --- a/frontend/src/plugin.ts +++ b/frontend/src/plugin.ts @@ -4,4 +4,5 @@ export interface Plugin { icon: JSX.Element; content?: JSX.Element; onDismount?(): void; + alwaysRender?: boolean; } -- cgit v1.2.3