🐛 Fix: disabled plugin won't be shown in plugin page

This commit is contained in:
PiEgg
2020-12-19 20:52:01 +08:00
parent bd2311bf50
commit 33fdb16ded
4 changed files with 7 additions and 6 deletions
@@ -35,6 +35,7 @@ class ShortKeyHandler {
})
}
private initPluginsShortKey () {
// get enabled plugin
const pluginList = picgo.pluginLoader.getList()
for (let item of pluginList) {
const plugin = picgo.pluginLoader.getPlugin(item)
+1 -1
View File
@@ -58,7 +58,7 @@ const handleConfigWithFunction = (config: any[]) => {
const handleGetPluginList = () => {
ipcMain.on('getPluginList', (event: IpcMainEvent) => {
const pluginList = picgo.pluginLoader.getList()
const pluginList = picgo.pluginLoader.getFullList()
const list = []
for (let i in pluginList) {
const plugin = picgo.pluginLoader.getPlugin(pluginList[i])