aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/PluginSettings/index.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index 6d3a752..e0f1815 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -246,7 +246,7 @@ export default ErrorBoundary.wrap(function Settings() {
);
};
- const [newPlugins, error, newPluginsLoading] = useAwaiter(() => DataStore.get("Vencord_existingPlugins").then((existingPlugins: Record<string, number>) => {
+ let [newPlugins, error, newPluginsLoading] = useAwaiter(() => DataStore.get("Vencord_existingPlugins").then((existingPlugins: Record<string, number>) => {
const dateNow: number = Date.now() / 1000;
const Vencord_existingPlugins: Record<string, number> = {};
const newPlugins: Array<string> = [];
@@ -260,6 +260,10 @@ export default ErrorBoundary.wrap(function Settings() {
return newPlugins;
}));
+ if (JSON.stringify(newPlugins) === JSON.stringify(sortedPluginNames)) {
+ newPlugins = [];
+ }
+
return (
<Forms.FormSection tag="h1" title="Vencord">
<Forms.FormTitle tag="h5" className={classes(Margins.marginTop20, Margins.marginBottom8)}>