Re: Hide the tab bar when there is only one tab?
Posted: 19 Feb 2022 23:04
This can already be done...
General - Custom Event Actions - Other events - Switch tabs, Action = Run script
viewtopic.php?f=2&t=24235
General - Custom Event Actions - Other events - Switch tabs, Action = Run script
Code: Select all
$cntTabsA = gettoken(get("Tabs", , "a"), "count", "|");
if (get("#800")) {
$cntAll = $cntTabsA + gettoken(get("Tabs", , "i"), "count", "|");
if ($cntAll > 2 && get("#662") == 0) { #662; }
elseif ($cntAll == 2 && get("#662") == 1) { #662; }
} else {
if ($cntTabsA > 1 && get("#662") == 0) { #662; }
elseif ($cntTabsA == 1 && get("#662") == 1) { #662; }
}