From 40b7b66353ddf6f86229018b0f1244cc4e9c13ab Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Wed, 6 Mar 2019 17:30:31 -0500 Subject: [PATCH] Reset the progress bar value to 0 when we set the max --- Persephone/Controllers/WindowController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Persephone/Controllers/WindowController.swift b/Persephone/Controllers/WindowController.swift index 1c6bab8..1cc8b13 100644 --- a/Persephone/Controllers/WindowController.swift +++ b/Persephone/Controllers/WindowController.swift @@ -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 {