Solved [TC 10.51rc3] Wrong dir selected in Separate tree, when View Mode with Auto-run command is applied at startup

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

Moderators: white, Hacker, petermad, Stefan2

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.51rc3] Wrong dir selected in Separate tree, when View Mode with Auto-run command is applied at startup

Post by *ghisler(Author) »

What happens is the following:
To apply cm_SrcAllFiles to the right panel, TC has to make that panel the active panel, otherwise cm_SrcAllFiles would be applied to the left panel (which is the default during startup). Activating the right panel shows and focuses its directory in the separate tree. I will prevent that from happening, but then the tree may not get updated when such a forced focus switch occurs later in the program.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: [TC 10.51rc3] Wrong dir selected in Separate tree, when View Mode with Auto-run command is applied at startup

Post by *tuska »

2ghisler(Author)
I do not understand your explanations in part.

The marking of the Separate Tree as well as the View Mode with Auto Switch Mode works as expected - as stated above -
with these settings:

Code: Select all

[Configuration]		StartupScreen=1			   ) Turn splash screen at startup on/off (on=1, off=0)
- OR -							   )
[Configuration]		StartupScreen=     Not present     )
but NOT with this setting:

Code: Select all

[Configuration]		StartupScreen=0
With StartupScreen=0 the following programme flow results for me:
  1. TC is started
  2. Focus + Marker
    • focus in the left window (active) <ALWAYS!> ... -> c:\Users\
       
    • marking in the Separate Tree on the "Program Files" folder (= inactive window)
      This marker is FALSE because the marker should be on the "Users" folder (active window)!
       
    • For c:\Users\ there is NO View Mode and NO Auto Switch Mode
      Why should according to your statement
      "otherwise cm_SrcAllFiles would be applied to the left panel (which is the default during startup)."
      suddenly the command "cm_SrcAllFiles" used here?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.51rc3] Wrong dir selected in Separate tree, when View Mode with Auto-run command is applied at startup

Post by *ghisler(Author) »

It's a timing problem, the auto-run command is executed with a delay (via PostMessage).
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: [TC 10.51rc3] Wrong dir selected in Separate tree, when View Mode with Auto-run command is applied at startup

Post by *tuska »

HISTORY.TXT wrote: 29.08.22 Release Total Commander 10.51 release candidate 4 (RC4)
28.08.22 Fixed: Separate tree: The path of the target panel could be shown as active in the tree
                                               when using a view mode with auto-run commands (32/64)
StartupScreen=0 is fixed. :)
Thanks!


Windows 11 Pro (x64) Version 21H2 (OS build 22000.918) | TC 10.51RC4 x64/x86
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.51rc3] Wrong dir selected in Separate tree, when View Mode with Auto-run command is applied at startup

Post by *petermad »

history.txt wrote:28.08.22 Fixed: Separate tree: The path of the target panel could be shown as active in the tree when using a view mode with auto-run commands (32/64)
Confirmed fixed in TC 10.51rc4 :-)
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
User avatar
white
Power Member
Power Member
Posts: 4595
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.51rc3] Wrong dir selected in Separate tree, when View Mode with Auto-run command is applied at startup

Post by *white »

petermad wrote: 2022-08-29, 12:16 UTC Confirmed fixed in TC 10.51rc4 :-)
Confirmed.

Moderator message from: white » 2022-08-29, 13:27 UTC

Moved to Fixed bugs.
Post Reply