From 7ce37f858c0a1e09e1f6497fbd32b172cc9b3c6c Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 31 Aug 2022 23:04:18 +0200 Subject: Unindent, plugins is now an object instead of [] --- src/components/Settings.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/components') diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index ee293bb..c274366 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -45,7 +45,7 @@ export default ErrorBoundary.wrap(function Settings(props) { Plugins - {Plugins.map(p => ( + {Object.values(Plugins).map(p => ( { - // TODO: start every dependency settings.plugins[d].enabled = true; + if (!Plugins[d].started && !stopPlugin) { + // TODO show notification + settings.plugins[p.name].enabled = false; + } }); if (!p.started && !startPlugin(p)) { // TODO show notification -- cgit