summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorAndrew Moore <andrewm.finewolf@gmail.com>2024-02-14 23:45:55 -0500
committerGitHub <noreply@github.com>2024-02-14 20:45:55 -0800
commit7d6b8805dfc3b38515bf9752d85bce8f2c992179 (patch)
tree1f2d369c9ab25fe24738c4c8d228ed98244cc5c5 /backend
parent0dce3a8cbe5c1c26c26530a3879f0c2d2d50f9af (diff)
downloaddecky-loader-7d6b8805dfc3b38515bf9752d85bce8f2c992179.tar.gz
decky-loader-7d6b8805dfc3b38515bf9752d85bce8f2c992179.zip
[Feature] Freeze updates for devs (#582)v2.11.0-pre3
Diffstat (limited to 'backend')
-rw-r--r--backend/locales/en-US.json2
-rw-r--r--backend/src/browser.py6
2 files changed, 7 insertions, 1 deletions
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: