Optimizr topactivity widget

Оптимизация CPU нагрузки, мелкие ошибки.
This commit is contained in:
lsv 2024-10-07 10:40:28 +05:00 committed by lsv
parent 79cf102071
commit eae0846942
5 changed files with 17 additions and 7 deletions

View file

@ -588,12 +588,18 @@ void ctlTreeJSON::RefreshImageList() {
dc.DrawRectangle(0, 0, w, h);
images.push_back(wxBitmapBundle(bmp));
SetItemImage(item, n);
wxString s = GetItemText(item);
//SetItemImage(item, n);
//wxString s = GetItemText(item);
n++;
}
if (images.size() > 0) {
SetImages(images);
n = 0;
for (const auto& [item, color] : colors) {
SetItemImage(item, n);
n++;
}
}
}
void ctlTreeJSON::LoadInTree(wxJSONValue& jval, const wxTreeItemId& idParent) {