Page 1 of 1
Tags-window isn't updated upon game change
Posted:
24 Apr 2010, 16:03
by macx
When browsing the games in the game-list window, the Tags-Window isn't updated anymore (since v4.4.0).
Would it be possible to fix that in a future version?
That leads me to another pebble bothering my toes ever since I'm using winboard: would be nice to have the comments window cleared upon changing to another game in the list. Can be very irritating to see the comments of the previous game.
Thx.
Re: Tags-window isn't updated upon game change
Posted:
24 Apr 2010, 20:02
by H.G.Muller
OK, I see. It only updates the tags window on loading a PGN when /autoDisplaytags=true. When the tags window is opened from the Mode -> Edit Tags menu, there is no update. In 4.2.7 the /autoDisplayTags option does not exist (but the behavior is like it is always on), and the routine that pops it up is called always. If the window was already up, this just causes the contents to be replaced.
I guess I should check for the window already being open, and if it is, display new tags even when /autoDisplayTags=false. For now, the work-around is to set /autoDisplayTags=true.
Clearing the comments window on loading a new game also seems a good idea.
Thanks for reporting!
Re: Tags-window isn't updated upon game change
Posted:
24 Apr 2010, 20:38
by H.G.Muller
I also see an interesting difference between WinBoard and XBoard here: when clicking Machine White, Black or Two Machines, WinBoard refreshes the tags window if it is open, but in XBoard the old tags continue to be displayed (while the stored tags are in fact reset when you do this). I guess the latter behavior is undesirable, but in XBoard it was repaired in the front-end, not in the back-end (so the patch did not affect XBoard).
So I guess I should supply a routine TagsUp() in both XBoard and WinBoard front-end, that the back-end can use to inquire about the state of the window, and displace the code now in the WinBoard front-end to the back-end, using it. LoadGame can then also use it to decide on refreshing the tags.
Re: Tags-window isn't updated upon game change
Posted:
26 Apr 2010, 22:55
by macx
The /autoDisplaytags is set true by default, it appears. However, the Tags window doesn't update when changing to another pgn-file. The only work around working for me is to close and reopen the Tags window itself.
Ok, thanks for your reply, and your work!