#84: Aktionsbuttons im Verlauf-Tab nach Laufende reaktivieren

notifyRunEnded() in GuiHistoryTab ergänzt; GuiConfigurationEditorWorkspace
verdrahtet batchRunTab.runningProperty() und ruft notifyRunEnded() via
Platform.runLater() auf, sobald der Lauf endet.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-05 11:54:48 +02:00
parent cec3b4fb84
commit 5129d3c9f6
2 changed files with 21 additions and 0 deletions
@@ -534,6 +534,13 @@ public final class GuiConfigurationEditorWorkspace {
this.batchRunTab::isRunning, this.batchRunTab::isRunning,
this::loadedConfigurationPath); this::loadedConfigurationPath);
// Aktionsbuttons im Verlauf-Tab reaktivieren, sobald der Lauf beendet ist
this.batchRunTab.runningProperty().addListener((obs, wasRunning, running) -> {
if (!running) {
Platform.runLater(this.historyTab::notifyRunEnded);
}
});
String configuredPromptPath = effectiveContext.initialState().values().promptTemplateFile(); String configuredPromptPath = effectiveContext.initialState().values().promptTemplateFile();
int maxTitleLength; int maxTitleLength;
try { try {
@@ -190,6 +190,20 @@ public final class GuiHistoryTab {
loadOverview(); loadOverview();
} }
/**
* Wird aufgerufen, wenn ein Verarbeitungslauf beendet wurde, damit Aktionsbuttons
* wieder aktiviert werden können, falls ein Dokument in der Tabelle selektiert ist.
* <p>
* Muss auf dem JavaFX Application Thread aufgerufen werden.
*/
public void notifyRunEnded() {
DocumentHistoryRow selected = overviewTable.getSelectionModel().getSelectedItem();
if (selected != null) {
resetButton.setDisable(false);
deleteButton.setDisable(false);
}
}
// ========================================================================= // =========================================================================
// UI-Aufbau // UI-Aufbau
// ========================================================================= // =========================================================================