diff options
Diffstat (limited to 'gui/ice40/mainwindow.cc')
-rw-r--r-- | gui/ice40/mainwindow.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/ice40/mainwindow.cc b/gui/ice40/mainwindow.cc index c2ac264f..ccff2117 100644 --- a/gui/ice40/mainwindow.cc +++ b/gui/ice40/mainwindow.cc @@ -186,10 +186,11 @@ void MainWindow::onDisableActions() actionSaveAsc->setEnabled(false);
}
-void MainWindow::onUpdateActions() {
- if (ctx->settings.find(ctx->id("pack"))==ctx->settings.end())
+void MainWindow::onUpdateActions()
+{
+ if (ctx->settings.find(ctx->id("pack")) == ctx->settings.end())
actionLoadPCF->setEnabled(true);
- if (ctx->settings.find(ctx->id("route"))!=ctx->settings.end())
+ if (ctx->settings.find(ctx->id("route")) != ctx->settings.end())
actionSaveAsc->setEnabled(true);
}
|