summaryrefslogtreecommitdiff
path: root/frontend/src/plugin-loader.tsx
diff options
context:
space:
mode:
authorTravis Lane <63308171+Tormak9970@users.noreply.github.com>2023-04-03 17:21:31 -0400
committerGitHub <noreply@github.com>2023-04-03 14:21:31 -0700
commit0f36e87ccea0d9bf2a3db8ee858f27d9d1b2d796 (patch)
treee3018e7096401d387923f388637c5a45f6fa6185 /frontend/src/plugin-loader.tsx
parentfd325ef1cc1d3e78b5e7686819e05606cc79d963 (diff)
downloaddecky-loader-0f36e87ccea0d9bf2a3db8ee858f27d9d1b2d796.tar.gz
decky-loader-0f36e87ccea0d9bf2a3db8ee858f27d9d1b2d796.zip
Add plugin reordering (#378)
* feat: started work on saving plugin order * feat: implemented local ReorderableList * feat: reoder complete except for usage of DFL * switched to using dfl reorderableList * fix: added missing file and removed frag * updated to newest dfl * Update defsettings.json * fix: plugin order was missing on init * fix: now await pluginOrder * fix: moved the plugin-order load to plugin-loader * chore: v6 and dfl bump
Diffstat (limited to 'frontend/src/plugin-loader.tsx')
-rw-r--r--frontend/src/plugin-loader.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index 5b640758..a3381de7 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -169,6 +169,12 @@ class PluginLoader extends Logger {
getSetting('developer.enabled', false).then((val) => {
if (val) import('./developer').then((developer) => developer.startup());
});
+
+ //* Grab and set plugin order
+ getSetting<string[]>('pluginOrder', []).then((pluginOrder) => {
+ console.log(pluginOrder);
+ this.deckyState.setPluginOrder(pluginOrder);
+ });
}
public deinit() {