powercord-org / powercord

A lightweight @discord client mod focused on simplicity and performance.
MIT License
1.2k stars 147 forks source link

fix: don't attempt to disable plugins twice #651

Closed katlyn closed 2 years ago

katlyn commented 2 years ago

Currently, if a plugin is repeatedly requested to be disabled it will be added to the disabledPlugins array multiple times. Currently this can be seen with vpc-shiki as pc-commands is added to the array again every time Discord is restarted. This PR makes sure that a plugin is loaded before it will attempt to disabled it.