Improved Second-Instance Activation Behavior
Refactored the application's single-instance lock handler in the Electron main process to improve window toggling when the user attempts to launch a second instance:
- Toggle Focused Window: If the application is already running, focused, and no file argument is passed, launching a new instance will now act as a toggle:
- If the system tray setting
showTrayis enabled, the active window is seamlessly hidden to the tray (win.hide()). - If
showTrayis disabled, the window is minimized (win.minimize()).
- If the system tray setting
- Restore and Focus: If the window was previously minimized or hidden, it is correctly restored (
win.restore()), shown (win.show()), and focused (win.focus()).
Maintenance and Dependency Upgrades
- Version Bump: Bumped version from
7.3.0to7.3.1. - Icon Library Upgrade: Upgraded
lucideicons dependency from^1.23.0to^1.24.0.