Content plug-in API: Passthrough bug (wrong unit)

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Content plug-in API: Passthrough bug (wrong unit)

Post by *Lefteous »

TC forwards the value not in bytes in a certain case.

1. Add and activate a custom column config with the following columns
1st column: [=tc.Size.Mbytes]
2nd column [=dirsizecalc.Size]
The order matters!
2. Open an archive
3. TC will now show the value in the same units in both columns although the dirsiecalc column is configured to show bytes.

Conclusion: TC forwards the value in the unit which is used in a column before the plug-in column instead of bytes as documented in the plug-in SDK.


Thanks to petermad for finding the bug :-)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Very strange. I will check that, thanks.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

OK just one hint. If you try this with the latest beta of DirSizeCalc make sure to add this information to DirSizeCalc.ini (in same directory as Wincmd.ini) before installing the plug-in

Code: Select all

[General]
PassThroughValues=1
Otherwise the plug-in won't request passing through values at all.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could reproduce this problem now (and fix it). The problem was that the "size" variable was converted in place to the needed size of the column. I just wasn't expecting that anyone would have multiple size columns...
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Fixed in Total Commander 7.03. Thank you! :-)
Post Reply