diff --git a/components/SettingsUI/UISettings.tsx b/components/SettingsUI/UISettings.tsx index 4d5d679..53a8354 100644 --- a/components/SettingsUI/UISettings.tsx +++ b/components/SettingsUI/UISettings.tsx @@ -42,6 +42,17 @@ export const UISettings: React.FC = ({ settings, onChange }) => { /> + + + + { + if (key === "enableStatusOverviewPopup" && value === false) { + StatusesInfoPopup.close(); + } + }, + "main-status-popup-setting-subscriptor", + ); } async loadPluginSettings() { diff --git a/types/pluginSettings.ts b/types/pluginSettings.ts index a967e9a..6e98c54 100644 --- a/types/pluginSettings.ts +++ b/types/pluginSettings.ts @@ -15,6 +15,7 @@ export type PluginSettings = { statusColors: Record; showStatusBar: boolean; autoHideStatusBar: boolean; + enableStatusOverviewPopup: boolean; // Whether to show popup with grouped statuses templates: StatusTemplate[]; customStatuses: NoteStatus[]; statusBarShowTemplateName: "always" | "never" | "auto"; // How to show template names in status bar