mirror of https://github.com/YosysHQ/nextpnr.git
gui: Properly initialize himbaechel context when creating a new one during json import
Signed-off-by: Jasper Homann <jasper.homann@tu-braunschweig.de>
This commit is contained in:
parent
de8cd9782f
commit
d3bbf4dc6e
|
|
@ -370,6 +370,11 @@ void BaseMainWindow::open_json()
|
|||
if (ctx->settings.find(ctx->id("synth")) == ctx->settings.end()) {
|
||||
ArchArgs chipArgs = ctx->args;
|
||||
ctx = std::unique_ptr<Context>(new Context(chipArgs));
|
||||
#ifdef ARCH_HIMBAECHEL
|
||||
ctx->uarch->with_gui = true;
|
||||
ctx->uarch->init(ctx.get());
|
||||
ctx->late_init();
|
||||
#endif
|
||||
Q_EMIT contextChanged(ctx.get());
|
||||
}
|
||||
handler->load_json(ctx.get(), fileName.toStdString());
|
||||
|
|
|
|||
Loading…
Reference in New Issue