mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-02-08 21:38:13 -05:00
Fixed: #171 || guiMenu is a function
This commit is contained in:
parent
bb034677bd
commit
c5f6ae8993
@ -143,7 +143,7 @@ const handlePluginActions = (ipcMain, CONFIG_PATH) => {
|
|||||||
const picgo = new PicGo(CONFIG_PATH)
|
const picgo = new PicGo(CONFIG_PATH)
|
||||||
const plugin = picgo.pluginLoader.getPlugin(`picgo-plugin-${name}`)
|
const plugin = picgo.pluginLoader.getPlugin(`picgo-plugin-${name}`)
|
||||||
const guiApi = new GuiApi(ipcMain, event.sender, picgo)
|
const guiApi = new GuiApi(ipcMain, event.sender, picgo)
|
||||||
if (plugin.guiMenu && plugin.guiMenu.length > 0) {
|
if (plugin.guiMenu && plugin.guiMenu(picgo).length > 0) {
|
||||||
const menu = plugin.guiMenu(picgo)
|
const menu = plugin.guiMenu(picgo)
|
||||||
menu.forEach(item => {
|
menu.forEach(item => {
|
||||||
if (item.label === label) {
|
if (item.label === label) {
|
||||||
|
@ -22,7 +22,7 @@ export default {
|
|||||||
mixins: [mixin],
|
mixins: [mixin],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
logo: 'static/logo.png',
|
logo: 'static/squareLogo.png',
|
||||||
dragover: false,
|
dragover: false,
|
||||||
progress: 0,
|
progress: 0,
|
||||||
showProgress: false,
|
showProgress: false,
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
<div class="plugin-item" :class="{ 'darwin': os === 'darwin' }">
|
<div class="plugin-item" :class="{ 'darwin': os === 'darwin' }">
|
||||||
<div class="cli-only-badge" v-if="!item.gui" title="CLI only">CLI</div>
|
<div class="cli-only-badge" v-if="!item.gui" title="CLI only">CLI</div>
|
||||||
<img class="plugin-item__logo" :src="item.logo"
|
<img class="plugin-item__logo" :src="item.logo"
|
||||||
onerror="this.src='static/logo.png'"
|
onerror="this.src='static/roundLogo.png'"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="plugin-item__content"
|
class="plugin-item__content"
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 651 B After Width: | Height: | Size: 2.6 KiB |
BIN
static/roundLogo.png
Normal file
BIN
static/roundLogo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
BIN
static/squareLogo.png
Normal file
BIN
static/squareLogo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
Loading…
Reference in New Issue
Block a user