Page 2 of 2

Re: Hide the tab bar when there is only one tab?

Posted: 19 Feb 2022 23:04
by highend
This can already be done...

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; }
    }
viewtopic.php?f=2&t=24235

Re: Hide the tab bar when there is only one tab?

Posted: 19 Feb 2022 23:32
by brettcode
highend wrote: 19 Feb 2022 23:04 This can already be done...

General - Custom Event Actions - Other events - Switch tabs, Action = Run script
Sorry for being a noob, but it's not working for me:

Open XYplorer = single tab and tab bar. Open another tab = two tabs and tab bar. Close tab = one tab and no tab bar. Open a new tab again = one tab and still no tab bar. Seems to only work on hiding the tab bar event.

Re: Hide the tab bar when there is only one tab?

Posted: 19 Feb 2022 23:52
by highend
Read my post again. Till the end^^

Re: Hide the tab bar when there is only one tab?

Posted: 23 Feb 2022 03:51
by brettcode
highend wrote: 19 Feb 2022 23:52 Read my post again. Till the end^^
Says fixed in 22.90.0005. I'm using 22.90.0008, and still not working. Thanks for the info, though.

Re: Hide the tab bar when there is only one tab?

Posted: 23 Feb 2022 10:41
by highend
Should work with v22.90.0009 now (but not if background tabs are created^^)