diff --git a/plugins/all-in-one/settings.tsx b/plugins/all-in-one/settings.tsx index e088e0c..847d0c9 100644 --- a/plugins/all-in-one/settings.tsx +++ b/plugins/all-in-one/settings.tsx @@ -1,11 +1,9 @@ import { plugin } from "@vendetta"; -import { storage } from "@vendetta/plugin"; -import { useProxy } from "@vendetta/storage"; import { getAssetIDByName } from "@vendetta/ui/assets"; import { React } from "@vendetta/metro/common"; import { findByProps } from "@vendetta/metro"; import { View } from "react-native"; -import { alerts } from "@vendetta/ui"; +import { BundleUpdaterManager } from "@vendetta/metro/common"; const { ScrollView } = findByProps("ScrollView"); const { TableRowGroup, TableSwitchRow, Stack, TableRow } = findByProps( @@ -47,13 +45,6 @@ if (!storage.pendingRestart) { storage.pendingRestart = false; } -const Credits = { - PETPET: "wolfieeee", - FACTS: "jdev082", - LISTS: "Kitomanari", - KONOCHAN: ["btmc727", "Rico040"], -}; - export default function Settings() { useProxy(storage); const [rerender, forceRerender] = React.useReducer((x) => x + 1, 0); @@ -62,17 +53,8 @@ export default function Settings() { React.useEffect(() => { return () => { if (storage.pendingRestart) { - alerts.showConfirmationAlert({ - title: "Restart Required", - content: - "Command changes require Discord to restart. Would you like to restart now?", - confirmText: "Restart", - cancelText: "Later", - confirmColor: "brand", - onConfirm: () => { - window.enmity.plugins.reload("vendetta"); - }, - }); + storage.pendingRestart = false; + BundleUpdaterManager.reload(); } }; }, []); @@ -85,7 +67,7 @@ export default function Settings() { return ( - + {/* Facts Commands */} @@ -109,11 +91,6 @@ export default function Settings() { forceRerender(); }} /> - - - - - {/* About Section */} + {/* Credits */} + + + + + + + + {/* Actions */} + + BundleUpdaterManager.reload()} + /> + + + {/* About */}