From 5919aa15057a8263d7680524aa785752b4020baf Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 29 Jun 2022 23:51:03 +0200 Subject: [PATCH] Minor macOS performance improvement --- Shared/Player/VideoPlayerView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Player/VideoPlayerView.swift b/Shared/Player/VideoPlayerView.swift index 8255d3f0..8406388b 100644 --- a/Shared/Player/VideoPlayerView.swift +++ b/Shared/Player/VideoPlayerView.swift @@ -226,7 +226,7 @@ struct VideoPlayerView: View { #else .onAppear(perform: { NSEvent.addLocalMonitorForEvents(matching: [.mouseMoved]) { - if hoveringPlayer { + if !player.currentItem.isNil, hoveringPlayer { playerControls.resetTimer() }