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' }, {