Skip to content

feat: add tray-only taskbar option - #134

Open
nbali wants to merge 4 commits into
i2van:mainfrom
nbali:copilot/add-config-hide-from-taskbar
Open

feat: add tray-only taskbar option#134
nbali wants to merge 4 commits into
i2van:mainfrom
nbali:copilot/add-config-hide-from-taskbar

Conversation

@nbali

@nbali nbali commented Jul 23, 2026

Copy link
Copy Markdown

This pull request adds a new feature allowing users to hide the timer window from the taskbar when it is shown in the notification area. The implementation includes a new setting, command-line option, and context menu item, as well as the necessary logic to update the window's visibility in the taskbar based on user preferences.

New feature: Hide timer from taskbar when in notification area

  • Added a new user setting HideFromTaskbarWhenInNotificationArea to application settings and configuration files. [1] [2] [3]
  • Implemented a new command-line option --hide-from-taskbar-when-in-notification-area (aliases: -hf, /hf) to control this behavior, including parsing, usage documentation, and default handling. [1] [2] [3] [4] [5] [6]
  • Updated the context menu with a new checkable item to toggle hiding the timer from the taskbar when shown in the notification area, including resource strings and UI logic. [1] [2] [3] [4] [5] [6]
  • Modified TimerWindow logic to update the ShowInTaskbar property and related UI when the new setting changes, and ensured event handlers are properly managed. [1] [2] [3] [4]
  • Updated documentation in FAQ.md to describe the new feature and its command-line usage.

These changes enhance user control over the application's window visibility and provide both UI and command-line access to the new behavior.


Command-line support

  • Added HideFromTaskbarWhenInNotificationArea property to CommandLineArguments, following the existing ShowInNotificationArea pattern (most-recent-options and factory-defaults resolution).
  • Added --hide-from-taskbar-when-in-notification-area switch (aliases -hf, /hf) with on|off|last semantics.
  • Wired the parsed value into AppEntry.SetGlobalSettingsFromArguments to update Settings.Default.HideFromTaskbarWhenInNotificationArea.

Documentation

  • Documented the new switch in Usage.txt, including its entry in the factory-defaults list.
  • Added a mention of the setting and its command-line equivalent in FAQ.md, alongside the existing notification-area minimizing instructions.
hourglass -n on -hf on 5

starts a 5-minute timer that shows its notification-area icon and hides the timer window from the taskbar while minimized.

@nbali nbali changed the title Add tray-only taskbar option and update related documentation feat: add tray-only taskbar option and update related documentation Jul 23, 2026
@nbali nbali changed the title feat: add tray-only taskbar option and update related documentation feat: add tray-only taskbar option Jul 23, 2026
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.

2 participants