From ea1aa6fe7e8f7a59658c644fa7f4ed592e2be170 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 17 Jun 2026 19:05:03 +0200 Subject: [PATCH] Always restore from PiP to expanded player window on macOS The PiP restore handler only expanded the player when mini player video was disabled, which is the iOS behavior where playback can continue in the mini player. On macOS the mini player is not a restore target, so always reopen the player window; iOS keeps the existing logic. --- Yattee/Services/Player/PlayerService.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Yattee/Services/Player/PlayerService.swift b/Yattee/Services/Player/PlayerService.swift index 03458105..ec93d437 100644 --- a/Yattee/Services/Player/PlayerService.swift +++ b/Yattee/Services/Player/PlayerService.swift @@ -2130,11 +2130,17 @@ final class PlayerService { // Configure PiP callbacks if let coordinator = navigationCoordinator { mpvBackend.onRestoreFromPiP = { [weak coordinator] in + #if os(macOS) + // On macOS, always restore into the expanded player window — + // the mini player is not a restore target there + coordinator?.expandPlayer() + #else // If mini player video is disabled, expand player for restore // Otherwise video continues in mini player if MiniPlayerSettings.cached.showVideo == false { coordinator?.expandPlayer() } + #endif } mpvBackend.onPiPDidStart = { [weak coordinator] in guard let coordinator else {