Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hide-to-tray on start option #3942

Merged
merged 3 commits into from
Jan 12, 2023
Merged

Conversation

TheFreeman193
Copy link
Contributor

Description

Implements a hide on start option to minimize the window to tray on app launch.

This uses the same minimize technique as the onClose hook and the tray icon toggle, and occurs after the browser window load and splash screen finish.

Additional command line arguments --hidden and --show override the menu setting (for autorun/cron etc.).

The menu option exists as Hide window on launch under Preferences/General/Other.

Notes

  • I generally work with C#/.NET/PowerShell and am unfamiliar with electron/node/ts. Please check that I haven't missed anything.
  • I've only added a language string for the menu item to the English locale, so translations will need to be made for preferences/general/other/hideOnLaunch.

Related Issues

Appearance

Updated Preferences menu:

image

TheFreeman193 and others added 2 commits December 22, 2022 00:43
- New option hideOnLaunch in prefrences/general/other
- New args --hidden and --show to override hideOnLaunch

Resolves h3poteto#2660
@h3poteto h3poteto merged commit 463fc4f into h3poteto:master Jan 12, 2023
@TheFreeman193 TheFreeman193 deleted the hide-on-start branch January 13, 2023 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autostart possibilty with out active window
2 participants