MCPcopy Create free account
hub / github.com/chrxh/alien / processNumObjectsField

Method processNumObjectsField

source/Gui/BrowserWindow.cpp:943–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943void BrowserWindow::processNumObjectsField(NetworkResourceTreeTO const& treeTO, bool kobjects)
944{
945 if (treeTO->isLeaf()) {
946 auto& leaf = treeTO->getLeaf();
947 if (kobjects) {
948 AlienImGui::Text(StringHelper::format(leaf.rawTO->particles / 1000) + " K");
949 } else {
950 AlienImGui::Text(StringHelper::format(leaf.rawTO->particles));
951 }
952 }
953}
954
955void BrowserWindow::processSizeField(NetworkResourceTreeTO const& treeTO, bool kbyte)
956{

Callers

nothing calls this directly

Calls 1

isLeafMethod · 0.80

Tested by

no test coverage detected