Hide the progress display when progress is 0

Fixes #16
This commit is contained in:
Sindre Sorhus 2023-03-09 12:13:37 +07:00
parent 0957c026ee
commit df8539a39a
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public enum DockProgress {
return
}
let icon = (0..<1).contains(progress) ? draw(appIcon) : appIcon
let icon = progress > 0 && progress < 1 ? draw(appIcon) : appIcon
// TODO: Make this better by drawing in the `contentView` directly instead of using an image
dockImageView.image = icon
NSApp.dockTile.display()