-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Progress bar falls back when updating #667
Labels
Needs Triaging
This issue needs the developer's attention to sort & prioritize.
Comments
Gaojianli
added
the
Needs Triaging
This issue needs the developer's attention to sort & prioritize.
label
Jan 14, 2025
Thanks for your advice. The launcher has been successfully updated after the progress reach 100%, I am just reporting a gui bug here :-).
…--------------原始邮件--------------
发件人:"Kemal Setya Adhi ***@***.***>;
发送时间:2025年1月14日(星期二) 晚上11:53
收件人:"CollapseLauncher/Collapse" ***@***.***>;
抄送:"高渐离 ***@***.***>;"Author ***@***.***>;
主题:Re: [CollapseLauncher/Collapse] [Bug]: Progress bar falls back when updating (Issue #667)
-----------------------------------
Hi there,
This might be related to update issue that happened on: #642 and should have been fixed in later releases.
Try follow the instruction Here to force-update your launcher to the latest version.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Corresponding code Collapse/CollapseLauncher/XAMLs/Updater/UpdaterWindow.xaml.cs Lines 125 to 142 in 2a44755
Fix proposal + private double _progressLastValue {get; set;} = 0;
private void FallbackCDNUtil_DownloadProgress(object sender, DownloadEvent e)
{
double speed = e.SizeDownloaded / CurrentStopwatch.Elapsed.TotalSeconds;
TimeSpan timeLeft = ToTimeSpanRemain(e.SizeToBeDownloaded, e.SizeDownloaded, speed);
DispatcherQueue?.TryEnqueue(() =>
{
+ var progressPercentage = e.ProgressPercentage;
progressBar.IsIndeterminate = false;
+ if (progressPercentage > _progressLastValue)
+ {
+ progressBar.Value = progressPercentage;
+ _progressLastValue = progressPercentage;
+ }
- progressBar.Value = e.ProgressPercentage;
ActivityStatus.Text = string.Format(Lang._UpdatePage.UpdateStatus3, 1, 1);
ActivitySubStatus.Text =
$"{SummarizeSizeSimple(e.SizeDownloaded)} / {SummarizeSizeSimple(e.SizeToBeDownloaded)}";
SpeedStatus.Text =
string.Format(Lang._Misc.SpeedPerSec, SummarizeSizeSimple(speed));
TimeEstimation.Text = string.Format(Lang._Misc.TimeRemainHMSFormat, timeLeft);
});
} Practically force the progress bar to never go back in value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected Version
1.82.9
Bug Behavior
Progress bar falls back when updating. See the screenshot
Expected Behavior
Progress bar just increase.
Steps to reproduce
Upgrade to1.8.114
Related Issues
No response
Screenshot(s)
Collapse.2025-01-14.23-38-19.mp4
Additional Information
No response
The text was updated successfully, but these errors were encountered: