mirror of
https://github.com/Spengreb/sync.git
synced 2026-06-09 23:02:05 +00:00
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:
commit
1050a15ef6
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue