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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user