gui for json write and proper statuses

This commit is contained in:
Miodrag Milanovic
2019-06-14 11:14:18 +02:00
parent 053bd48bef
commit 0d8c80ad5d
11 changed files with 84 additions and 36 deletions
+6 -2
View File
@@ -186,7 +186,11 @@ void MainWindow::onDisableActions()
actionSaveAsc->setEnabled(false);
}
void MainWindow::onJsonLoaded() { actionLoadPCF->setEnabled(true); }
void MainWindow::onRouteFinished() { actionSaveAsc->setEnabled(true); }
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())
actionSaveAsc->setEnabled(true);
}
NEXTPNR_NAMESPACE_END