Search from service mode no longer strands the user on the home screen

In service mode's Video view the overlay lives inside the player pane, which
the home-over rule hid, while service mode kept the bottom bar and mini bar
hidden. Going home now leaves service mode first, and the rule spares the
service overlay.
This commit is contained in:
Jonathan Sykes
2026-10-03 01:15:44 +08:00
parent caf0199c11
commit 65f5325a8e
2 changed files with 4 additions and 1 deletions

View File

@@ -7056,6 +7056,9 @@ function setHomeOverPlayer(on) {
const pane = els.playerPane;
if (!pane) return;
on = !!on && !!(current && current.meta);
// Service mode hides the bottom bar and mini bar (and, in its Video view,
// lives inside this pane): leave it first or the home screen is a dead end.
if (on && isServiceModeOpen()) exitServiceMode();
if (pane.classList.contains('home-over') === on) return;
pane.classList.toggle('home-over', on);
pane.classList.toggle('empty', on);