Skip to content

Commit

Permalink
new tray icon message
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed Jan 1, 2025
1 parent ad642fa commit 3783a48
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/build_number.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
516
518
13 changes: 13 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,19 @@ app.whenReady().then(() => {
app.dock?.hide();
}

// new icon warning
if (!settings.general.firstRun && settings.general.hideOnStartup && settings.general.tips.newTrayIcon === undefined) {
dialog.showMessageBox(null, {
message: process.platform === 'win32' ? 'New system tray icon!' : 'New menu bar icon!',
detail: process.platform === 'win32'
? 'The old lightbulb tray icon has been replaced with the Witsy application icon.'
: 'The old lightbulb menu bar icon has been replaed with a fountain pen icon.'

});
settings.general.tips.newTrayIcon = false;
config.saveSettings(app, settings);
}

// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
app.on('activate', () => {
Expand Down

0 comments on commit 3783a48

Please sign in to comment.