Permalink
Browse files

Change initial NowPlaying state to unknown

Prevent from grabbing system media control when the main window is not
loaded.
  • Loading branch information...
alejx committed Feb 6, 2019
1 parent 361f796 commit 62f8f4719b40fb25849ccfea5f5519177360ebbb
Showing with 1 addition and 1 deletion.
  1. +1 −1 iina/AppDelegate.swift
@@ -165,7 +165,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
if RemoteCommandController.useSystemMediaControl {
Logger.log("Setting up MediaPlayer integration")
RemoteCommandController.setup()
NowPlayingInfoManager.updateState(.playing)
NowPlayingInfoManager.updateState(.unknown)
}
}

0 comments on commit 62f8f47

Please sign in to comment.