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:
Jasper Homann 2026-08-07 12:26:04 +02:00 committed by myrtle
parent de8cd9782f
commit d3bbf4dc6e
1 changed files with 5 additions and 0 deletions

View File

@ -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());