Opened 15 years ago
Last modified 14 years ago
#809 closed enhancement
Selecting many items in a large ItemListView takes a long time — at Version 1
Reported by: | abeham | Owned by: | swagner |
---|---|---|---|
Priority: | medium | Milestone: | HeuristicLab 3.3.0 |
Component: | Data | Version: | 3.2 |
Keywords: | Cc: |
Description (last modified by abeham)
In !ItemListView_T.cs line 124:
removeButton.Enabled = false; if(itemsListView.SelectedItems.Count > 0) { removeButton.Enabled = true; }
should better be
if (itemsListView.SelectedItems.Count > 0) removeButton.Enabled = true; else removeButton.Enabled = false;
My assumption is that switching removeButton from disabled to enabled causes a GUI update every time an item is added to the selection. This can also be seen in the GUI.
I assume removeButton.Enabled = true doesn't fire a GUI update when it was enabled before, otherwise a check if (!removeButton.Enabled) should be added before enabling the removeButton.
Note: See
TracTickets for help on using
tickets.
prettified description