[GH-ISSUE #5] [Feature]: 添加系统托盘 #6

Open
opened 2026-02-27 15:42:19 +03:00 by kerem · 4 comments
Owner

Originally created by @BegoniaHe on GitHub (Jan 29, 2026).
Original GitHub issue: https://github.com/owu/wsl-dashboard/issues/5

前置确认

  • 我已搜索现有 Issue,确认这不是重复的功能请求
  • 我已查看 README
  • 这个功能将使多个用户受益,而不仅仅是我自己

问题陈述

当前dashboard在点击关闭按钮时会直接退出应用,对于需要长时间运行dashboard并需要随时呼出的场景,缺少系统托盘支持会导致用户体验不佳。

建议的解决方案

添加系统托盘功能,包含以下特性:

基础功能

  • 托盘图标:应用最小化时显示在系统托盘
  • 双击行为:双击托盘图标显示/隐藏主窗口
  • 右键菜单:提供快捷操作菜单

托盘菜单项

├─ 显示/隐藏窗口
├─ 快速启动/停止
│  ├─ [最近使用的实例1]
│  ├─ [最近使用的实例2]
│  └─ [最近使用的实例3]
├─ 当前系统占用(特定实例)
│  └─ [显示当前系统占用]
├─ ────────────
└─ 退出

高级功能

  • 系统通知
    • 新版本可用
  • 设置选项
    • 关闭窗口时最小化到托盘(而非退出)
    • 开机启动 dashboard
    • 开机启动特定实例
    • 启动时dashboard最小化到托盘
    • 绑定自定义快捷键打开dashboard/收起到托盘

贡献意愿

  • 我愿意实现这个功能
  • 我愿意帮助测试这个功能
  • 我可以提供设计草图或规范
Originally created by @BegoniaHe on GitHub (Jan 29, 2026). Original GitHub issue: https://github.com/owu/wsl-dashboard/issues/5 ### 前置确认 - [x] 我已搜索现有 Issue,确认这不是重复的功能请求 - [x] 我已查看 README - [x] 这个功能将使多个用户受益,而不仅仅是我自己 ### 问题陈述 当前dashboard在点击关闭按钮时会直接退出应用,对于需要长时间运行dashboard并需要随时呼出的场景,缺少系统托盘支持会导致用户体验不佳。 ### 建议的解决方案 添加**系统托盘**功能,包含以下特性: ### 基础功能 - **托盘图标**:应用最小化时显示在系统托盘 - **双击行为**:双击托盘图标显示/隐藏主窗口 - **右键菜单**:提供快捷操作菜单 ### 托盘菜单项 ``` ├─ 显示/隐藏窗口 ├─ 快速启动/停止 │ ├─ [最近使用的实例1] │ ├─ [最近使用的实例2] │ └─ [最近使用的实例3] ├─ 当前系统占用(特定实例) │ └─ [显示当前系统占用] ├─ ──────────── └─ 退出 ``` ### 高级功能 - **系统通知**: - 新版本可用 - **设置选项**: - 关闭窗口时最小化到托盘(而非退出) - 开机启动 dashboard - 开机启动特定实例 - 启动时dashboard最小化到托盘 - 绑定自定义快捷键打开dashboard/收起到托盘 ### 贡献意愿 - [x] 我愿意实现这个功能 - [x] 我愿意帮助测试这个功能 - [x] 我可以提供设计草图或规范
Author
Owner

@owu commented on GitHub (Jan 29, 2026):

TODO

<!-- gh-comment-id:3819909310 --> @owu commented on GitHub (Jan 29, 2026): TODO
Author
Owner

@owu commented on GitHub (Jan 31, 2026):

Proceeding in an orderly manner.

Image
<!-- gh-comment-id:3828894308 --> @owu commented on GitHub (Jan 31, 2026): Proceeding in an orderly manner. <img width="400" height="300" alt="Image" src="https://github.com/user-attachments/assets/52b4077b-c900-468c-91cc-c5d892f5edb8" />
Author
Owner

@owu commented on GitHub (Jan 31, 2026):

Automatically start on system startup;
Minimize to system tray after automatic startup;
Close the main window, minimize to the tray, but do not exit the program;
<!-- gh-comment-id:3828897907 --> @owu commented on GitHub (Jan 31, 2026): ``` Automatically start on system startup; Minimize to system tray after automatic startup; Close the main window, minimize to the tray, but do not exit the program; ```
Author
Owner

@owu commented on GitHub (Feb 6, 2026):

You can download the new version and give it a try.

<!-- gh-comment-id:3859527487 --> @owu commented on GitHub (Feb 6, 2026): You can download the new version and give it a try.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wsl-dashboard#6
No description provided.