From c24c864b14d761fdd6636a2cc32a44ed3f3813ee Mon Sep 17 00:00:00 2001 From: Dean Sung Date: Thu, 15 Feb 2024 09:43:01 +0800 Subject: [PATCH] Fix menu icon path --- src/node/menu-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/menu-manager.js b/src/node/menu-manager.js index 24d095ea8..4dd1ad957 100644 --- a/src/node/menu-manager.js +++ b/src/node/menu-manager.js @@ -9,10 +9,10 @@ const { BrowserWindow, Menu, MenuItem, - nativeImage, shell, ipcMain, } = require('electron'); +const path = require('path'); const Store = require('electron-store'); const resource = require('./menu-resource'); const events = require('./ipc-events'); @@ -64,7 +64,7 @@ function buildFileMenu(fnKey, callback) { id: 'SAVE_TO_CLOUD', label: r.save_to_cloud, click: callback, - icon: '../../public/img/icon-flux-plus@4x.png', + icon: path.join(__dirname, '../..', 'public/img/icon-flux-plus@4x.png'), }, { type: 'separator' }, {