Merge pull request #10 from Spengreb/bugfix/tvmode

Fix bug where if Big Picture mode was set as default layout switching…
This commit is contained in:
Spengreb 2026-05-21 13:01:15 +02:00 committed by GitHub
commit 1050a15ef6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1773,6 +1773,9 @@ function clearTVMessageFadeTimer($msg) {
function detectCurrentLayoutName() {
var body = $("body");
if (body.hasClass("compact")) {
return "compact";
}
if (body.hasClass("hd")) {
return "hd";
}
@ -1797,6 +1800,9 @@ function backToNormalLayout(event) {
if (!nextLayout || nextLayout === "tv") {
nextLayout = USEROPTS.layout;
}
if (nextLayout === "default" && USEROPTS.layout === "tv") {
nextLayout = "fluid";
}
if (!nextLayout || nextLayout === "tv") {
nextLayout = "fluid";
}
@ -1820,6 +1826,9 @@ function backToNormalLayout(event) {
case "hd":
hdLayout();
break;
case "compact":
compactLayout();
break;
default:
compactLayout();
break;