Skip to content

Commit

Permalink
Fixed: #171 || guiMenu is a function
Browse files Browse the repository at this point in the history
  • Loading branch information
Molunerfinn committed Jan 19, 2019
1 parent bb03467 commit c5f6ae8
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/utils/picgoCoreIPC.js
Expand Up @@ -143,7 +143,7 @@ const handlePluginActions = (ipcMain, CONFIG_PATH) => {
const picgo = new PicGo(CONFIG_PATH)
const plugin = picgo.pluginLoader.getPlugin(`picgo-plugin-${name}`)
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)
menu.forEach(item => {
if (item.label === label) {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/pages/MiniPage.vue
Expand Up @@ -22,7 +22,7 @@ export default {
mixins: [mixin],
data () {
return {
logo: 'static/logo.png',
logo: 'static/squareLogo.png',
dragover: false,
progress: 0,
showProgress: false,
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/pages/Plugin.vue
Expand Up @@ -17,7 +17,7 @@
<div class="plugin-item" :class="{ 'darwin': os === 'darwin' }">
<div class="cli-only-badge" v-if="!item.gui" title="CLI only">CLI</div>
<img class="plugin-item__logo" :src="item.logo"
onerror="this.src='static/logo.png'"
onerror="this.src='static/roundLogo.png'"
>
<div
class="plugin-item__content"
Expand Down
Binary file modified static/menubar-nodarwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/roundLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/squareLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c5f6ae8

Please sign in to comment.