View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005097||DarkRadiant||GUI||public||02.01.2020 15:13||23.01.2021 05:53|
|Target Version||2.10.0||Fixed in Version||2.10.0|
|Summary||0005097: Layer toggle controls can get out of sync (showing wrong icons)|
|Description||Where the button after being clicked on will remove the tick mark, but will show blue on the button.|
|Steps To Reproduce||Open DR - |
- Use DR normally for while (so far longer than 2 hrs)
- Open the layers window,
- click on any of the layers buttons to hide or show a layer,
- the layer will hide and show as normal -
The issue -
- the color of the button WILL toggle off/on (so the layer is being hidden/revealed etc)
- but the tick will continue to be shown.
|Additional Information||- only work around is to close and re-open layers window.|
|The only work around is to close and reopen the layers window.|
|Dont know if this is fixable, but this is still happening.|
|The work around is to close and re-open the effect window.|
|Still happening, regular as clockwork in 2.8|
|Is related to 005391|
|@Greebo, do you think this is also linked or related to the 'wxToggleButton' function somehow..?|
|Will test and see if this issue got resolved in 2.9pre3 as a result of the fix implemented in 0005391|
|Still preset in 2.9pre3.|
|To clarify, the behaviour is that the layer is hidden but the tick mark is drawn on the corresponding toggle button as if it were visible?|
Hold fire for now, as I think the other layers window fix you have done for pre3 may have fixed it. I have had DR open for 2hours and so far the issue hasen't appeared.
Ok, so it turned out I just needed DR open for longer than 2hrs for the issue to happen again.
So in answer for your question, yes the behavior is that the layer is hidden but the tick mark is drawn on the corresponding toggle button as if it were visible. See attached, the only visible layers are default and manor_gnd.
|I just spotted another issue related to this bug, when the above issue is happening the 'Show all' becomes un-togglable and stays grayed-out.|
Ok, so it seems that it's possible for the layers window to get its visual state out of sync with the state of the LayerSystem in the backend. Especially if opening and closing the dialog will fix it, because that's when the dialog will reload all its controls and sync the state with the LayerSystem.
There must be some steps leading up to that issue, do you remember doing anything special before that? Are you just clicking the toggles, or is this happening without any interaction?
Not sure if the run time plays any role, except for making the steps more likely to happen.
|I'll check in a change that might have an effect on this issue - maybe you can have a look at it in the next pre-release build.|
Regarding states/steps, I am fairly sure I can just leave DR along without touching it and it will exibit the same issue. So tonight before going to bed I will load DR with a map loaded (bhm) and see whats its state is like in the morning.
And yes am more than happy to test the change with the next build.
So leaving DR running for 8hrs with no input didn't reproduce the issue.
There's a new pre-release version (2.9.2pre2) available here, maybe you can check out if the behaviour is improved now.
|Downloading and will test first thing in the morning.|
|Am currently testing.|
tested (2.9.2pre2) for a few hours this morning, and the issue hasn't recurred. So this tracker can be closed.
thanks for fixing this :-)
|Nice, thanks for testing|
DarkRadiant: master 41d4a84b
2020-11-19 18:04:00Details Diff
|0005097: Maybe not directly related to the described issue, but the lock should have a name to prevent it from being destructed immediately after construction.||
|mod - radiant/ui/layers/LayerControl.cpp||Diff File|
DarkRadiant: master de1bffd9
2020-11-19 18:31:51Details Diff
|0005097: Instead of setting the icons ourselves, tell wxWidgets about the images it needs to render when the toggle is active/inactive||
|mod - radiant/ui/layers/LayerControl.cpp||Diff File|
|02.01.2020 15:13||Bikerdude||New Issue|
|02.01.2020 15:13||Bikerdude||Tag Attached: layers window|
|02.01.2020 15:13||Bikerdude||File Added: layers child window.JPG|
|06.01.2020 19:39||Bikerdude||Summary||Layers child window showing weird selection behavour. => Layers child window exibiting weird selection behavour.|
|06.01.2020 19:39||Bikerdude||Steps to Reproduce Updated||View Revisions|
|06.01.2020 21:53||Bikerdude||Steps to Reproduce Updated||View Revisions|
|05.05.2020 15:42||Bikerdude||Note Added: 0012468|
|09.10.2020 21:11||Bikerdude||Note Added: 0012804|
|03.11.2020 12:31||Bikerdude||Note Added: 0012857|
|08.11.2020 20:03||Bikerdude||Note Added: 0012874|
|09.11.2020 11:21||Bikerdude||Product Version||2.6.0 => 2.8.0|
|09.11.2020 14:22||Dragofer||Relationship added||related to 0005391|
|10.11.2020 09:39||Bikerdude||Summary||Layers child window exibiting weird selection behavour. => Layers child window exhibiting weird selection behavour.|
|10.11.2020 09:39||Bikerdude||Note Added: 0012885|
|13.11.2020 16:52||Bikerdude||Note Added: 0012907|
|17.11.2020 15:39||Bikerdude||Note Added: 0012967|
|18.11.2020 12:00||Bikerdude||Note Added: 0012984|
|19.11.2020 03:38||greebo||Note Added: 0012987|
|19.11.2020 10:36||Bikerdude||Steps to Reproduce Updated||View Revisions|
|19.11.2020 10:36||Bikerdude||Note Added: 0012991|
|19.11.2020 13:50||Bikerdude||Note Edited: 0012991||View Revisions|
|19.11.2020 15:33||Bikerdude||Note Added: 0012995|
|19.11.2020 15:33||Bikerdude||File Added: Capture.JPG|
|19.11.2020 15:35||Bikerdude||Steps to Reproduce Updated||View Revisions|
|19.11.2020 15:37||Bikerdude||Note Added: 0012996|
|19.11.2020 18:08||greebo||Note Added: 0012998|
|19.11.2020 18:29||greebo||Summary||Layers child window exhibiting weird selection behavour. => Layer toggle controls can get out of sync (showing wrong icons)|
|19.11.2020 18:32||greebo||Note Added: 0012999|
|19.11.2020 18:32||greebo||Assigned To||=> greebo|
|19.11.2020 18:32||greebo||Status||new => assigned|
|19.11.2020 18:32||greebo||Changeset attached||=> DarkRadiant master 41d4a84b|
|19.11.2020 18:32||greebo||Changeset attached||=> DarkRadiant master de1bffd9|
|19.11.2020 20:26||Bikerdude||Note Added: 0013000|
|20.11.2020 08:36||Bikerdude||Note Added: 0013003|
|24.11.2020 16:45||greebo||Note Added: 0013014|
|24.11.2020 17:01||Bikerdude||Note Added: 0013015|
|26.11.2020 10:08||Bikerdude||Note Added: 0013023|
|26.11.2020 13:40||Bikerdude||Note Added: 0013024|
|26.11.2020 15:10||greebo||Status||assigned => resolved|
|26.11.2020 15:10||greebo||Resolution||open => fixed|
|26.11.2020 15:10||greebo||Fixed in Version||=> 2.9.2|
|26.11.2020 15:10||greebo||Note Added: 0013025|
|26.11.2020 15:11||greebo||Target Version||=> 2.9.2|
|13.12.2020 06:22||greebo||Fixed in Version||2.9.2 => 2.10.0|
|13.12.2020 06:22||greebo||Target Version||2.9.2 => 2.10.0|
|23.01.2021 05:53||greebo||Relationship added||has duplicate 0004744|