CollapseLauncher / Collapse

An Advanced Launcher for miHoYo/HoYoverse Games
MIT License
1.34k stars 65 forks source link

[Request]: Show download progress in the taskbar #502

Open DeepChirp opened 2 months ago

DeepChirp commented 2 months ago

Is your request related to a problem?

No

How is the feature request related to the problem?

No response

Describe your proposed solution

I think the download progress can be displayed in the taskbar, so that the download progress can be quickly judged through the taskbar.

Describe alternatives you've considered

Maybe not.

Additional context

We may be able to use TaskbarItemInfo.ProgressState and TaskbarItemInfo.ProgressValue to achieve this functionality. See: https://learn.microsoft.com/en-us/dotnet/api/system.windows.shell.taskbariteminfo.progressstate and https://learn.microsoft.com/en-us/dotnet/api/system.windows.shell.taskbariteminfo.progressvalue. Regardless of whether you adopt this suggestion, I am grateful.

DeepChirp commented 2 months ago

Also we use WinUI 3 as the UI framework, not WPF.

Sorry, I don't know about these frameworks. I just saw it using C#.

bagusnl commented 2 months ago

Hi, after talking a bit about this with @neon-nyan, it's possible to implement this function as addition into our TrayIcon class. But this requires a lot of events code from InstallManager to handle cases like multiple download install, task bar status rate limit, etc.

TL;DR: It's possible but might take awhile due to the complexity of our code