diff options
| author | Andrew Moore <andrewm.finewolf@gmail.com> | 2024-02-14 23:45:55 -0500 |
|---|---|---|
| committer | Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> | 2024-02-20 21:39:43 +0000 |
| commit | c2ebc78836cafc96f03546e6dba5acfa86795d65 (patch) | |
| tree | 0725e28b9af5f4ad3fce13f4ea35eeb87375ce50 /frontend/src/components/DeckyState.tsx | |
| parent | dc1697d04961e1b413a43ad345c28e4fb3d5c03f (diff) | |
| download | decky-loader-c2ebc78836cafc96f03546e6dba5acfa86795d65.tar.gz decky-loader-c2ebc78836cafc96f03546e6dba5acfa86795d65.zip | |
[Feature] Freeze updates for devs (#582)
Diffstat (limited to 'frontend/src/components/DeckyState.tsx')
| -rw-r--r-- | frontend/src/components/DeckyState.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frontend/src/components/DeckyState.tsx b/frontend/src/components/DeckyState.tsx index d20c8d86..749e27ce 100644 --- a/frontend/src/components/DeckyState.tsx +++ b/frontend/src/components/DeckyState.tsx @@ -8,6 +8,7 @@ import { VerInfo } from '../updater'; interface PublicDeckyState { plugins: Plugin[]; pluginOrder: string[]; + frozenPlugins: string[]; hiddenPlugins: string[]; activePlugin: Plugin | null; updates: PluginUpdateMapping | null; @@ -26,6 +27,7 @@ export interface UserInfo { export class DeckyState { private _plugins: Plugin[] = []; private _pluginOrder: string[] = []; + private _frozenPlugins: string[] = []; private _hiddenPlugins: string[] = []; private _activePlugin: Plugin | null = null; private _updates: PluginUpdateMapping | null = null; @@ -41,6 +43,7 @@ export class DeckyState { return { plugins: this._plugins, pluginOrder: this._pluginOrder, + frozenPlugins: this._frozenPlugins, hiddenPlugins: this._hiddenPlugins, activePlugin: this._activePlugin, updates: this._updates, @@ -67,6 +70,11 @@ export class DeckyState { this.notifyUpdate(); } + setFrozenPlugins(frozenPlugins: string[]) { + this._frozenPlugins = frozenPlugins; + this.notifyUpdate(); + } + setHiddenPlugins(hiddenPlugins: string[]) { this._hiddenPlugins = hiddenPlugins; this.notifyUpdate(); |
