Skip to content

Commit

Permalink
fix: fixing tray icon path
Browse files Browse the repository at this point in the history
  • Loading branch information
ailtonloures committed Oct 17, 2024
1 parent 21c7d58 commit 501a66a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-bookmark",
"productName": "VSCode Bookmark",
"description": "A utility to save your favorite projects and open them easily in vscode.",
"version": "1.0.4",
"version": "1.0.5",
"author": "Ailton Loures",
"homepage": "https://github.com/ailtonloures/vscode-bookmark#readme",
"repository": {
Expand Down
10 changes: 9 additions & 1 deletion src/modules/tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ function getLabel() {

function getIcon() {
return nativeImage.createFromPath(
path.resolve('assets', 'icons', 'png', 'tray-icon.png')
path.resolve(
import.meta.dirname,
'..',
'..',
'assets',
'icons',
'png',
'tray-icon.png'
)
);
}

Expand Down

0 comments on commit 501a66a

Please sign in to comment.