fix: navigate to player on PiP media control
Some checks are pending
Check / check (push) Waiting to run

This commit is contained in:
ThaUnknown 2025-07-22 01:05:07 +02:00
parent 49427ed00d
commit 118d40d3c6
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.4.77",
"version": "6.4.78",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.15.5",

View file

@ -470,7 +470,10 @@
native.setActionHandler('previoustrack', () => prev?.())
native.setActionHandler('nexttrack', () => next?.())
// about://flags/#auto-picture-in-picture-for-video-playback
native.setActionHandler('enterpictureinpicture', () => pip.pip(true))
native.setActionHandler('enterpictureinpicture', () => {
goto('/app/player')
pip.pip(true)
})
let openSubs: () => Promise<void>
@ -560,10 +563,7 @@
desc: 'Toggle Mute'
},
KeyP: {
fn: () => {
goto('/app/player')
pip.pip()
},
fn: () => pip.pip(),
id: 'picture_in_picture',
icon: PictureInPicture2,
type: 'icon',