Tabs not restored after hiding and Total Commander restart

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Tabs not restored after hiding and Total Commander restart

Post by *DrShark »

Reproduced on Vista 32-bit in Total Commander 10.00 final.

To reproduce:
1. Open some folder tabs.
2. Hide them by executing cm_VisDirTabs.
3. Close Total Commander.
4. Start Total Commander again.
TC will start without tabs visible.
5. Execute cm_VisDirTabs.
Total Commander will NOT restore tabs you opened previously in step 1.
6. At this stage it's still possible to restore that tabs:
start another TC instance and execute cm_VisDirTabs there - tabs should appear (depending on how many times you tried cm_VisDirTabs in first instance, there may be a need to execute cm_VisDirTabs more than 1 time to get tabs restored). Now make sure you'll close second TC instance after first one to have that tabs saved.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Tabs not restored after hiding and Total Commander restart

Post by *ghisler(Author) »

This is intentional and will not be changed. cm_VisDirTabs disables tabs, so when TC saves tabs, it will save just the two visible directories.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: Tabs not restored after hiding and Total Commander restart

Post by *DrShark »

ghisler(Author) wrote: 2021-08-31, 10:54 UTCcm_VisDirTabs disables tabs, so when TC saves tabs, it will save just the two visible directories.
Since reproduce step 6 shows that it's possible to restore tabs after 1st TC restart with tabs hidden, it seems TC actually stores them.
ghisler(Author) wrote: 2021-08-31, 10:54 UTCThis is intentional and will not be changed.
The description of cm_VisDirTabs says:
Show/hide folder tabs
It's not obvious that TC can kill that tabs entirely after hiding.

I think more expected approach would be to add a separate command, like cm_DeleteTabs, which would hide tabs visually and in addition make it impossible to restore them with cm_VisDirTabs or after Total Commander restart.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Re: Tabs not restored after hiding and Total Commander restart

Post by *byblo »

I lost all my tabs today because of this ambiguity (I wanted to use this feature to increase vertical available space while on quickview mode)

Show/Hide is not the same as Disable/Enable...

edit: The problem seems when starting TC with DirectoryTabs set to 0, it does not load the previously saved tabs.

Then, is there a way to always start TC with DirectoryTabs enabled?
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Tabs not restored after hiding and Total Commander restart

Post by *petermad »

2byblo
Then, is there a way to always start TC with DirectoryTabs enabled?
Configuration -> "Options..." -> "Folder Tabs" -> "Show tab header also when there is only one tab" - or do I misunderstand your question?

If you have disabled Folder Tabs (under Layout or with cm_VisDirTabs) then TC will start in that mode, no way around that.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply