Skip to content

Commit

Permalink
fix tray icon and wording
Browse files Browse the repository at this point in the history
  • Loading branch information
artifishvr committed Jan 21, 2024
1 parent 4786c61 commit eacd287
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,14 @@ const createWindow = () => {
if (!preferences.value('toggles.tray')[0]) return;
mainWindow.hide();

let tray = new Tray(path.join(__dirname, 'build/icon.png'));
let tray = new Tray(path.join(__dirname, 'src/trayicon.png'));

tray.on('click', () => {
mainWindow.show();
tray.destroy();
});
});

mainWindow.on('restore', () => {
mainWindow.show();
});

// and load the index.html of the app.
mainWindow.loadFile(path.join(__dirname, 'src/index.html'));
};
Expand Down Expand Up @@ -78,7 +74,7 @@ const preferences = new ElectronPreferences({
options: [
{ label: "Minimize to Tray", value: true }
],
help: 'When you press X, tbh will go sit in the tray, instead of closing.',
help: 'When you press the minimize button, tbh will go hide in the system tray.',
},
]
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tbh",
"productName": "tbh",
"version": "1.9.3",
"version": "1.9.3-hotfix.1",
"description": "the autism creature",
"main": "index.js",
"repository": "https://github.com/artificialbutter/tbhdesktop",
Expand Down
Binary file added src/trayicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eacd287

Please sign in to comment.