[b3x64] Status line not always updated

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

Moderators: white, Hacker, petermad, Stefan2

User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

[b3x64] Status line not always updated

Post by *Valentino »

Brief mode.
Left panel contains some file.
Right panel is empty folder (so cursor is on ".." and status line shows "<DIR>").

1. Press Tab to get to the left panel.
2. Copy the file to right panel.
3. Press Tab to get to the right panel (cursor is still on ".." and status line shows "<DIR>").
4. Press down arrow on the keyboard: cursor moves to the newly copied file but status line still shows "<DIR>" instead of file size (sometimes it indeed shows file size but much more often not).

If cursor is moved up to ".." and then down back to file, then status line is updated.

TC8.0b3, Windows 7 SP1 x64 Pro Eng.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I can confirm it. It seems that I'm not getting a notification from Lazarus. I will check that.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should work now in beta 4, please test it!
Author of Total Commander
https://www.ghisler.com
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Works, thank you!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

This defect is not fully fixed:
I selected all files (3) in one panel and copied them to the opposite panel. After copying, selection in source panel is removed but status bar still showed "74.0 k / 74.0 k in 3 / 3 file(s)".

TC 8.0 beta 6.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check it.
Author of Total Commander
https://www.ghisler.com
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Fixed in beta 7.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Same problem again in beta 9 x64 :)

1. Brief mode. I have 33 files in a folder.
2. Select all of them with Ctrl+A.
3. Deselect the first file with Insert button. Note that the second file is focused now.
4. Press "Calculate Occupied Space" (Ctrl+L).
5. Press Escape to close message box.
6. Deselect all files with Ctrl+Num-.
7. Move cursor up one line so that the first file becomes focused. Status line is not updated.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, sounds a bit constructed, but I will still have a look at it when I find the time.
Author of Total Commander
https://www.ghisler.com
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

I just wrote what I was doing: it's a simple action of verifying combined file size and total size of its parts.
Shouldn't every focus change update the status line?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

In principle, yes. With Delphi it was easy, each focus change triggered the OnChange method. Not so with Lazarus, it's triggered only when the user clicks himself, so I have to handle all these special cases myself.
Author of Total Commander
https://www.ghisler.com
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

But in this particular case I move the focus (step 7) so even Lazarus should have noticed this.
User avatar
Valentino
Power Member
Power Member
Posts: 706
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Thanks! Fixed in beta 10.
Post Reply