Skip to content

Commit 736a8b1

Browse files
committed
Fix for rotating tablet into PC mode.
1 parent d2984e9 commit 736a8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/data/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3062,11 +3062,11 @@ function togglePcMode(fromB = false)
30623062
if (fromB) {
30633063
pcModeA = !pcModeA;
30643064
localStorage.setItem('pcm', pcModeA);
3065-
openTab(0, true);
30663065
}
30673066
pcMode = (wW >= 1024) && pcModeA;
30683067
if (cpick) cpick.resize(pcMode && wW>1023 && wW<1250 ? 230 : 260); // for tablet in landscape
30693068
if (!fromB && ((wW < 1024 && lastw < 1024) || (wW >= 1024 && lastw >= 1024))) return; // no change in size and called from size()
3069+
if (pcMode) openTab(0, true);
30703070
gId('buttonPcm').className = (pcMode) ? "active":"";
30713071
gId('bot').style.height = (pcMode && !cfg.comp.pcmbot) ? "0":"auto";
30723072
sCol('--bh', gId('bot').clientHeight + "px");

0 commit comments

Comments
 (0)