Added: pasteStyle handler in gallery page

This commit is contained in:
PiEgg
2018-12-19 11:52:27 +08:00
parent be6cce9501
commit 8ec128121f
6 changed files with 75 additions and 36 deletions

View File

@@ -512,8 +512,6 @@ if (process.env.XDG_CURRENT_DESKTOP && process.env.XDG_CURRENT_DESKTOP.includes(
app.on('ready', () => {
createWindow()
createSettingWindow()
// reset localstorage state
settingWindow.webContents.executeJavaScript(`localStorage.setItem('plugins', '')`)
if (process.platform === 'darwin' || process.platform === 'win32') {
createTray()
}

View File

@@ -37,7 +37,6 @@ const handleGetPluginList = (ipcMain, STORE_PATH, CONFIG_PATH) => {
ipcMain.on('getPluginList', event => {
const picgo = new PicGo(CONFIG_PATH)
const pluginList = picgo.pluginLoader.getList()
// console.log(pluginList.length)
const list = []
for (let i in pluginList) {
const plugin = picgo.pluginLoader.getPlugin(pluginList[i])