FreeTube
FreeTube copied to clipboard
Added hide to tray option
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
https://imgur.com/a/xvBEqFe
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