Fix required plugins being shown as disabled

This commit is contained in:
Nuckyz 2024-09-27 05:46:50 -03:00
parent eab0cf9966
commit 18f7b74210
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -93,7 +93,7 @@ interface PluginCardProps extends React.HTMLProps<HTMLDivElement> {
export function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLeave, isNew }: PluginCardProps) { export function PluginCard({ plugin, disabled, onRestartNeeded, onMouseEnter, onMouseLeave, isNew }: PluginCardProps) {
const settings = Settings.plugins[plugin.name]; const settings = Settings.plugins[plugin.name];
const isEnabled = () => settings.enabled ?? false; const isEnabled = () => Vencord.Plugins.isPluginEnabled(plugin.name);
function toggleEnabled() { function toggleEnabled() {
const wasEnabled = isEnabled(); const wasEnabled = isEnabled();