Skip to content

Commit

Permalink
fix icon
Browse files Browse the repository at this point in the history
  • Loading branch information
kumakichi committed Dec 11, 2021
1 parent f5fcea2 commit ff0308f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const {
ipcMain,
Menu,
shell,
nativeImage,
Tray
} = require('electron');
var win = null;
Expand Down Expand Up @@ -74,7 +75,7 @@ app.on('ready', function() {
let menu = Menu.buildFromTemplate(templateArr);
Menu.setApplicationMenu(menu);

tray = new Tray('tray-icon.png')
tray = new Tray(nativeImage.createFromPath(path.join(__static,'tray-icon.png')))
const contextMenu = Menu.buildFromTemplate([
{
label: 'Quit',
Expand Down
File renamed without changes

0 comments on commit ff0308f

Please sign in to comment.