Skip to content
Permalink
Browse files

Fixes playtime slider and labels not updating on network resources

  • Loading branch information...
orion1vi committed May 28, 2019
1 parent 65d2803 commit 5c487654e7c35f27a63994313962c44b9498e074
Showing with 5 additions and 1 deletion.
  1. +5 −1 iina/PlayerCore.swift
@@ -1254,7 +1254,11 @@ class PlayerCore: NSObject {
info.cacheTime = mpv.getInt(MPVProperty.demuxerCacheTime)
info.bufferingState = mpv.getInt(MPVProperty.cacheBufferingState)
DispatchQueue.main.async {
self.mainWindow.updatePlayTime(withDuration: true, andProgressBar: true)
if self.isInMiniPlayer {
self.miniPlayer.updatePlayTime(withDuration: true, andProgressBar: true)
} else {
self.mainWindow.updatePlayTime(withDuration: true, andProgressBar: true)
}
self.mainWindow.updateNetworkState()
}

0 comments on commit 5c48765

Please sign in to comment.
You can’t perform that action at this time.