mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-17 08:14:48 +00:00
Fixed download bugs
This commit is contained in:
@@ -29,9 +29,11 @@ export class StatusBarComponent {
|
||||
ref: ChangeDetectorRef
|
||||
) {
|
||||
downloadService.onDownloadUpdated(() => {
|
||||
this.downloading = downloadService.downloadCount > 0
|
||||
this.percent = downloadService.totalPercent
|
||||
ref.detectChanges()
|
||||
setTimeout(() => { // Make sure this is the last callback executed to get the accurate downloadCount
|
||||
this.downloading = downloadService.downloadCount > 0
|
||||
this.percent = downloadService.totalPercent
|
||||
ref.detectChanges()
|
||||
}, 0)
|
||||
})
|
||||
|
||||
searchService.onSearchChanged(() => {
|
||||
|
||||
Reference in New Issue
Block a user