Solve issue with nets/cells not visible on load
This commit is contained in:
parent
f1b3a14bc2
commit
5013724c0a
@ -244,11 +244,11 @@ int CommandHandler::executeMain(std::unique_ptr<Context> ctx)
|
|||||||
if (vm.count("json")) {
|
if (vm.count("json")) {
|
||||||
std::string filename = vm["json"].as<std::string>();
|
std::string filename = vm["json"].as<std::string>();
|
||||||
std::ifstream f(filename);
|
std::ifstream f(filename);
|
||||||
w.notifyChangeContext();
|
|
||||||
if (!parse_json_file(f, filename, w.getContext()))
|
if (!parse_json_file(f, filename, w.getContext()))
|
||||||
log_error("Loading design failed.\n");
|
log_error("Loading design failed.\n");
|
||||||
|
|
||||||
customAfterLoad(w.getContext());
|
customAfterLoad(w.getContext());
|
||||||
|
w.notifyChangeContext();
|
||||||
w.updateLoaded();
|
w.updateLoaded();
|
||||||
} else if (vm.count("load")) {
|
} else if (vm.count("load")) {
|
||||||
w.projectLoad(vm["load"].as<std::string>());
|
w.projectLoad(vm["load"].as<std::string>());
|
||||||
|
Loading…
Reference in New Issue
Block a user