From 7d6b8805dfc3b38515bf9752d85bce8f2c992179 Mon Sep 17 00:00:00 2001 From: Andrew Moore Date: Wed, 14 Feb 2024 23:45:55 -0500 Subject: [Feature] Freeze updates for devs (#582) --- backend/locales/en-US.json | 2 ++ backend/src/browser.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'backend') diff --git a/backend/locales/en-US.json b/backend/locales/en-US.json index ea0542ca..ca18f7da 100644 --- a/backend/locales/en-US.json +++ b/backend/locales/en-US.json @@ -99,12 +99,14 @@ } }, "PluginListIndex": { + "freeze": "Freeze updates", "hide": "Quick access: Hide", "no_plugin": "No plugins installed!", "plugin_actions": "Plugin Actions", "reinstall": "Reinstall", "reload": "Reload", "show": "Quick access: Show", + "unfreeze": "Allow updates", "uninstall": "Uninstall", "update_all_one": "Update 1 plugin", "update_all_other": "Update {{count}} plugins", diff --git a/backend/src/browser.py b/backend/src/browser.py index 5ce3e962..025e8fe7 100644 --- a/backend/src/browser.py +++ b/backend/src/browser.py @@ -289,12 +289,16 @@ class PluginBrowser: Args: name (string): The name of the plugin """ + frozen_plugins = self.settings.getSetting("frozenPlugins", []) + if name in frozen_plugins: + frozen_plugins.remove(name) + self.settings.setSetting("frozenPlugins", frozen_plugins) + hidden_plugins = self.settings.getSetting("hiddenPlugins", []) if name in hidden_plugins: hidden_plugins.remove(name) self.settings.setSetting("hiddenPlugins", hidden_plugins) - plugin_order = self.settings.getSetting("pluginOrder", []) if name in plugin_order: -- cgit v1.2.3