mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 22:25:24 +00:00
feat: give plugins their own settings and one settings screen
This commit is contained in:
1 parent
cc15559ea1
commit
49f0286a14
66 files changed
+36497
-451
No files matched your search
@@ -19,6 +19,7 @@ import { Bot } from "lucide-react";
|
||||
import { unregisterRailItem } from "@/sidebar/rail-items";
|
||||
import { unregisterTabComponent } from "@/shell/tabUtils";
|
||||
import { getPlugins, type PluginSummary } from "@/api/plugins-api";
|
||||
import { syncHostPluginsTab } from "@/settings/host-plugins-tab";
|
||||
import {
|
||||
declareActionSlot,
|
||||
registerAction,
|
||||
@@ -122,6 +123,10 @@ export function applyPluginState(plugins: PluginSummary[]): void {
|
||||
pluginEnabled = nextEnabled;
|
||||
disabledTabTypes = nextDisabledTabs;
|
||||
applyFirstPartyActions(nextEnabled);
|
||||
|
||||
// The host editor's Plugins tab exists only while something fills it, so it
|
||||
// is re-synced whenever the plugin list changes rather than declared once.
|
||||
syncHostPluginsTab(plugins);
|
||||
}
|
||||
|
||||
export async function refreshPluginState(): Promise<PluginSummary[]> {
|
||||
|
||||
Reference in new issue
Block a user