FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

Added hide to tray option

Open Devenor opened this issue 8 months ago • 132 comments

Added hide to tray option

Pull Request Type

  • [ ] Bugfix
  • [x] Feature Implementation
  • [ ] Documentation
  • [ ] Other

Related issue

closes #59

Description

Adds optional hide to system tray behaviour on closing and/or minimizing the main window. The settings have an option to enable or disable it in the general section. The tray icon has a small menu for closing the app or opening the window again, and it can be opened by clicking on the icon too.

Screenshots

https://imgur.com/a/1TVWBJp image

https://imgur.com/a/xvBEqFe image

Testing

  • Go to Settings -> General and enable Minimize to system tray.
  • When minimizing a window, the window will hide and a tray icon will appear.
  • [Only on Windows] If there's only one window in the tray, left clicking the tray will open the window and the tray will disappear.
  • Right clicking the tray will show a menu with an option to quit the app, and one submenu for each minimized window.
  • Clicking the submenu will show one option to open the window and another to close it. When clicking an option, the submenu will disappear.
  • If there are no more windows minimized, on Windows the tray will disappear, and on Linux it will remain with just the quit option.
  • When a window is shown from the tray, it will retain its original size and position.
  • When disabling the setting, if there are minimized windows they'll appear minimized in the taskbar.
  • This setting is not avaliable for MacOS.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: v0.23.2 Beta

Additional context

Devenor avatar Feb 24 '25 22:02 Devenor