Skip to content

Commit

Permalink
- bug fix in loading tray image
Browse files Browse the repository at this point in the history
  • Loading branch information
BeanVortex committed May 5, 2023
1 parent 7c1887b commit f291125
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/ir/darkdeveloper/bitkip/BitKip.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ private void initTray(Stage stage) {
if (SystemTray.isSupported()) {
Platform.setImplicitExit(false);
var tray = SystemTray.getSystemTray();
var image = Toolkit.getDefaultToolkit()
.getImage("src/main/resources/ir/darkdeveloper/bitkip/icons/logo.png");
var image = Toolkit.getDefaultToolkit().getImage(getResource("icons/logo.png"));
var popup = new PopupMenu();
var openItem = new MenuItem("Open App");
var exitItem = new MenuItem("Exit App");
Expand Down

0 comments on commit f291125

Please sign in to comment.