1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-29 21:26:40 +00:00

Save settings and give nicer names to some

This commit is contained in:
Miodrag Milanovic
2018-08-10 19:11:30 +02:00
parent 93a0d24560
commit e5006d4f2f
6 changed files with 15 additions and 7 deletions

View File

@@ -420,7 +420,7 @@ void BaseMainWindow::disableActions()
actionNew->setEnabled(true);
actionOpen->setEnabled(true);
if (ctx->settings.find(ctx->id("project/input/json")) != ctx->settings.end())
if (ctx->settings.find(ctx->id("input/json")) != ctx->settings.end())
actionSave->setEnabled(true);
else
actionSave->setEnabled(false);

View File

@@ -191,7 +191,7 @@ void MainWindow::onRouteFinished() { actionSaveAsc->setEnabled(true); }
void MainWindow::onProjectLoaded()
{
if (ctx->settings.find(ctx->id("project/input/pcf")) != ctx->settings.end())
if (ctx->settings.find(ctx->id("input/pcf")) != ctx->settings.end())
actionLoadPCF->setEnabled(false);
}