mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-03-11 02:29:37 +03:00
feat(ui): small progress bar changes
This commit is contained in:
parent
bdf52264ec
commit
176789ad10
1 changed files with 4 additions and 14 deletions
|
@ -132,30 +132,20 @@ impl SimpleAsyncComponent for ProgressBar {
|
|||
ProgressBarMsg::UpdateFromState(state) => {
|
||||
match state {
|
||||
DiffUpdate::InstallerUpdate(InstallerUpdate::CheckingFreeSpace(_)) => self.caption = Some(tr("checking-free-space")),
|
||||
|
||||
DiffUpdate::InstallerUpdate(InstallerUpdate::DownloadingStarted(_)) => {
|
||||
self.caption = Some(tr("downloading"));
|
||||
|
||||
self.display_fraction = true;
|
||||
}
|
||||
|
||||
DiffUpdate::InstallerUpdate(InstallerUpdate::UnpackingStarted(_)) => {
|
||||
self.caption = Some(tr("unpacking"));
|
||||
|
||||
self.display_fraction = true;
|
||||
}
|
||||
DiffUpdate::InstallerUpdate(InstallerUpdate::DownloadingStarted(_)) => self.caption = Some(tr("downloading")),
|
||||
DiffUpdate::InstallerUpdate(InstallerUpdate::UnpackingStarted(_)) => self.caption = Some(tr("unpacking")),
|
||||
|
||||
DiffUpdate::ApplyingHdiffStarted => {
|
||||
self.caption = Some(tr("applying-hdiff"));
|
||||
|
||||
self.display_fraction = false;
|
||||
}
|
||||
},
|
||||
|
||||
DiffUpdate::RemovingOutdatedStarted => {
|
||||
self.caption = Some(tr("removing-outdated"));
|
||||
|
||||
self.display_fraction = false;
|
||||
}
|
||||
},
|
||||
|
||||
DiffUpdate::InstallerUpdate(InstallerUpdate::DownloadingProgress(curr, total)) |
|
||||
DiffUpdate::InstallerUpdate(InstallerUpdate::UnpackingProgress(curr, total)) |
|
||||
|
|
Loading…
Add table
Reference in a new issue