Skip to content

Commit

Permalink
Fix backward compatibility for view management
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Jul 8, 2024
1 parent b7388ce commit a563436
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 3 additions & 2 deletions plugins/gui/src/graph_widget/graph_context_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,9 +685,10 @@ namespace hal
int visibleFlag = 1; // default to visible before flag was invented
if (jsonView.contains("visible"))
visibleFlag = jsonView["visible"].toInt();

u32 viewParentId = 0;
if (!jsonView.contains("parentId"))
continue;
u32 viewParentId = jsonView["parentId"].toInt();
viewParentId = jsonView["parentId"].toInt();

BaseTreeItem* viewParent = mContextTreeModel->getRootItem();

Expand Down
12 changes: 10 additions & 2 deletions plugins/netlist_simulator_study/src/netlist_simulator_study.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,15 @@ namespace hal

m_simul_controller.get()->simulate_only_probes(probes);

m_simul_controller.get()->emit_run_simulation();
m_simul_controller.get()->run_simulation();

while (m_simul_controller.get()->get_simulation_engine()->get_state() > 0)
{
std::cerr << "simulation running" << std::endl;
sleep(1);
}

std::cerr << "simulation result " << (int) m_simul_controller.get()->get_simulation_engine()->get_state() << std::endl;

return true;
}
Expand Down Expand Up @@ -416,4 +424,4 @@ namespace hal
}
}

} // namespace hal
} // namespace hal

0 comments on commit a563436

Please sign in to comment.