aboutsummaryrefslogtreecommitdiff
path: root/src/components/PluginSettings
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-15 17:29:31 +0100
committerVendicated <vendicated@riseup.net>2022-11-15 17:29:31 +0100
commitb30508aef8cd19625640ee650b58b557bb3fdd24 (patch)
treea31ffe5d96f88e42c1d48881f4005a483618bb61 /src/components/PluginSettings
parenteabbf7d9bd9c2d011056918d8e23c5938c8d4f9b (diff)
downloadVencord-b30508aef8cd19625640ee650b58b557bb3fdd24.tar.gz
Vencord-b30508aef8cd19625640ee650b58b557bb3fdd24.tar.bz2
Vencord-b30508aef8cd19625640ee650b58b557bb3fdd24.zip
better handling for settings ui errors
Diffstat (limited to 'src/components/PluginSettings')
-rw-r--r--src/components/PluginSettings/index.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index 9600ef7..a0dfc24 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -31,6 +31,7 @@ import { Alerts, Button, Forms, Margins, Parser, React, Select, Switch, Text, Te
import ErrorBoundary from "../ErrorBoundary";
import { ErrorCard } from "../ErrorCard";
import { Flex } from "../Flex";
+import { handleComponentFailed } from "../handleComponentFailed";
import PluginModal from "./PluginModal";
import * as styles from "./styles";
@@ -312,6 +313,9 @@ export default ErrorBoundary.wrap(function Settings() {
</div>
</Forms.FormSection >
);
+}, {
+ message: "Failed to render the Plugin Settings. If this persists, try using the installer to reinstall!",
+ onError: handleComponentFailed,
});
function makeDependencyList(deps: string[]) {