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:
parent
30ca11fce4
commit
40b7b66353
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user