1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

Reset the progress bar value to 0 when we set the max

This commit is contained in:
Daniel Barber 2019-03-06 17:30:31 -05:00
parent 30ca11fce4
commit 40b7b66353
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -90,6 +90,7 @@ class WindowController: NSWindowController {
else { return }
trackProgressBar.isEnabled = [.playing, .paused].contains(state)
trackProgressBar.integerValue = 0
trackProgressBar.maxValue = Double(totalTime * 1000)
if state == .playing {