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/plugin-loader.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/plugin-loader.tsx')
| -rw-r--r-- | frontend/src/plugin-loader.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index b27a19bb..50c7a896 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -22,6 +22,7 @@ import PluginUninstallModal from './components/modals/PluginUninstallModal'; import NotificationBadge from './components/NotificationBadge'; import PluginView from './components/PluginView'; import WithSuspense from './components/WithSuspense'; +import { FrozenPluginService } from './frozen-plugins-service'; import { HiddenPluginsService } from './hidden-plugins-service'; import Logger from './logger'; import { NotificationService } from './notification-service'; @@ -49,6 +50,7 @@ class PluginLoader extends Logger { public toaster: Toaster = new Toaster(); private deckyState: DeckyState = new DeckyState(); + public frozenPluginsService = new FrozenPluginService(this.deckyState); public hiddenPluginsService = new HiddenPluginsService(this.deckyState); public notificationService = new NotificationService(this.deckyState); @@ -144,7 +146,9 @@ class PluginLoader extends Logger { } public async checkPluginUpdates() { - const updates = await checkForUpdates(this.plugins); + const frozenPlugins = this.deckyState.publicState().frozenPlugins; + + const updates = await checkForUpdates(this.plugins.filter((p) => !frozenPlugins.includes(p.name))); this.deckyState.setUpdates(updates); return updates; } @@ -224,6 +228,7 @@ class PluginLoader extends Logger { this.deckyState.setPluginOrder(pluginOrder); }); + this.frozenPluginsService.init(); this.hiddenPluginsService.init(); this.notificationService.init(); } |
