Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-01-11 18:38:07 +01:00
parent 8c282558a3
commit 89d13dc396
1 changed files with 1 additions and 1 deletions

View File

@ -7526,7 +7526,7 @@ module.exports = (_ => {
for (let type of QueuedComponents) if (typeof plugin[`on${type}`] === "function") { for (let type of QueuedComponents) if (typeof plugin[`on${type}`] === "function") {
PluginStores.patchQueues[type].query.push(plugin); PluginStores.patchQueues[type].query.push(plugin);
PluginStores.patchQueues[type].query = BDFDB.ArrayUtils.removeCopies(PluginStores.patchQueues[type].query); PluginStores.patchQueues[type].query = BDFDB.ArrayUtils.removeCopies(PluginStores.patchQueues[type].query);
PluginStores.patchQueues[type].query.sort((x, y) => {return x.name < y.name ? -1 : x.name > y.name ? 1 : 0;}); PluginStores.patchQueues[type].query.sort((x, y) => x.name < y.name ? -1 : x.name > y.name ? 1 : 0);
for (let module of PluginStores.patchQueues[type].modules) InternalBDFDB.patchContextMenuForPlugin(plugin, type, module); for (let module of PluginStores.patchQueues[type].modules) InternalBDFDB.patchContextMenuForPlugin(plugin, type, module);
} }
}; };