ContentSendStateInformation refresh not handled properly
Moderators: Hacker, petermad, Stefan2, white
ContentSendStateInformation refresh not handled properly
When ContentSendStateInformation state is set to refresh_pressed nothing else is called after ContentSendStateInformation. But when I click into the filelist panel TC calls ContentGetValue.
Expected: TC should rerequest all values by calling ContentGetValue for all files in the current view.
Expected: TC should rerequest all values by calling ContentGetValue for all files in the current view.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
If I remember correctly, I had tried that, but quickly removed it because TC became unusable (the plugins would have to reload all the values every time there is a refresh). Maybe you have an idea how to solve this without slowing down TC to a crawl.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
This applies to contst_readnewdir but not to contst_refreshpressed.the plugins would have to reload all the values every time there is a refresh
plug-in sdk wrote:contst_readnewdir: It is called when TC reads one of the file lists.
contst_refreshpressed: The user has pressed F2 or Ctrl+R to force a reload.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
You are right, I will try to make this distinction.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I'm currently trying to reproduce this error, but unfortunately I can't. When (in which situation) do you get this problem? I checked my code, I'm clearing all custom column fields when the user presses F2 or Ctrl+R, or send cm_rereadsource...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Try this:When (in which situation) do you get this problem?
1) Setup a column view with [dirsizecalc.Size]
2) Create a directory which contains a file.
3) Go one dir up to display the directory size.
4) Reenter the directory and delete the file.
5) Go one dir up again.
6) Press Ctrl+R
7) The directory size display hasn't been updated (should show empty).
8) Press tab or click into the opposite file panel --> value is refreshed.
ContentGetValue should be called after the refresh not after changing the file panel focus.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks, I will try that! It sounds like the fields are cleared, but only reloaded when the corresponding line is redrawn...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com