Hide the tab bar when there is only one tab?

Features wanted...
highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post 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
One of my scripts helped you out? Please donate via Paypal

brettcode
Posts: 15
Joined: 19 Feb 2022 21:51

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

Post 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.

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post by highend »

Read my post again. Till the end^^
One of my scripts helped you out? Please donate via Paypal

brettcode
Posts: 15
Joined: 19 Feb 2022 21:51

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

Post 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.

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post by highend »

Should work with v22.90.0009 now (but not if background tabs are created^^)
One of my scripts helped you out? Please donate via Paypal

Post Reply