[9.0b3] Auto switch mode - archive in archive

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
jvh
Member
Member
Posts: 187
Joined: 2007-07-20, 12:28 UTC

[9.0b3] Auto switch mode - archive in archive

Post by *jvh »

1. Specify View mode for archives (Change background color in my case).
2. Add Rule to Auto switch Mode - A: Archive + Set this mode: <view mode in item 1>
3a. Go to an archive (zip, rar, ...) which has another archive inside - background color changes acc. rule <item 2> - OK
3b. Go to embedded archive (archive inside archive) - background color changes acc. rule <item 2> - OK
3c. Go back to parent archive - background color changes to default - BAD
4. If you change directory in archive (if possible) - background color changes again acc. rule <item 2> - OK
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

I was just about to report it too.
I can confirm your findings, but it seems that the outer archive needs to have a certain size, i.e. it needs to take some minimum time to "reload" when going back to it. For small archives loading fast, this doesn't seem to be triggered sometimes. The exact view mode for archives doesn't seem to matter.
TC plugins: PCREsearch and RegXtract
User avatar
Dalai
Power Member
Power Member
Posts: 9409
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

If you look closely, you can see that you're not in the parent archive in step 3c but in your %TEMP% directory - at least for some time (couple seconds, tops) before TC switches back to the outer archive. So, it's logical TC behaves this way, although it may be unexpected. Hm.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
jvh
Member
Member
Posts: 187
Joined: 2007-07-20, 12:28 UTC

Post by *jvh »

Dalai wrote:If you look closely, you can see that you're not in the parent archive in step 3c but in your %TEMP% directory - at least for some time (couple seconds, tops) before TC switches back to the outer archive. So, it's logical TC behaves this way, although it may be unexpected. Hm.

Regards
Dalai
In step 3b TC works with unpacked archive in %TEMP% dir, in step 3c goes back to parent archive. But it doesn't matter rule is set for archive not directory.

And please don't forget item 4 - if you change directory in parent archive (if possible) - background color changes again acc. rule
Last edited by jvh on 2016-06-30, 21:06 UTC, edited 1 time in total.
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

Dalai wrote:If you look closely, you can see that you're not in the parent archive in step 3c but in your %TEMP% directory - at least for some time (couple seconds, tops) before TC switches back to the outer archive. So, it's logical TC behaves this way, although it may be unexpected.
I'm aware of that temp dir behavior, but this still isn't "logical" IMO, as TC knows from where it came and what is about to happen. So keeping the last view mode in memory should be possible.
I'm not sure why TC introduced showing the temp dir in the first place (you could just show nothing new in that panel for the time waiting), probably to delete the temporary files. Still, it's not what the user requested by himself, so TC shouldn't break the modes.
TC plugins: PCREsearch and RegXtract
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48118
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Confirmed, thanks.
Author of Total Commander
https://www.ghisler.com
jvh
Member
Member
Posts: 187
Joined: 2007-07-20, 12:28 UTC

Post by *jvh »

Fixed in TC 9.0b4, thanks!
Post Reply