sindresorhus/DockProgress




The issue has been closed
Badge does not get removed from icon after calling DockProgress.resetProgress() #16
jordibruin posted onGitHub
Again, lovely work @sindresorhus !
Trying to implement it into MacWhisper (www.macwhisper.com) but running into an issue. After the progress is complete and I call DockProgress.resetProgress(), the badge remains visible on the icon.
Any idea what could be causing this?
Relevant code:
`func whisper(_ aWhisper: Whisper, didUpdateProgress progress: Float) {
self.progress = progress
DockProgress.style = .badge(badgeValue: {
Int(progress * 100)
})
DockProgress.progress = Double(progress)
}
@MainActor
func whisper(_ aWhisper: Whisper, didCompleteWithSegments segments: [Segment]) {
DockProgress.progress = Double(1)
DockProgress.resetProgress()`