mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-25 22:03:16 -06:00
Optimizr topactivity widget
Оптимизация CPU нагрузки, мелкие ошибки.
This commit is contained in:
parent
79cf102071
commit
eae0846942
5 changed files with 17 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue