diff options
| author | Andrew Moore <andrewm.finewolf@gmail.com> | 2024-02-14 23:45:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-14 20:45:55 -0800 |
| commit | 7d6b8805dfc3b38515bf9752d85bce8f2c992179 (patch) | |
| tree | 1f2d369c9ab25fe24738c4c8d228ed98244cc5c5 /frontend/src/components/DeckyState.tsx | |
| parent | 0dce3a8cbe5c1c26c26530a3879f0c2d2d50f9af (diff) | |
| download | decky-loader-7d6b8805dfc3b38515bf9752d85bce8f2c992179.tar.gz decky-loader-7d6b8805dfc3b38515bf9752d85bce8f2c992179.zip | |
[Feature] Freeze updates for devs (#582)v2.11.0-pre3
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(); |
