fix: Modell-Preise Tab Buttons nach Start aktivieren (#74)

This commit is contained in:
2026-05-11 06:58:09 +02:00
parent cb3fa143fb
commit 20722d4365
2 changed files with 13 additions and 0 deletions
@@ -1729,6 +1729,8 @@ public final class GuiConfigurationEditorWorkspace {
statusBarStateListener.accept(newState); statusBarStateListener.accept(newState);
// Prompt-Tab mit neuem Pfad und Port versorgen // Prompt-Tab mit neuem Pfad und Port versorgen
notifyPromptTabConfigChanged(newState); notifyPromptTabConfigChanged(newState);
// Modell-Preise-Tab ueber neue Konfiguration informieren (aktiviert die Buttons)
modelPricesTab.notifyConfigurationChanged();
} }
/** /**
@@ -119,6 +119,17 @@ public final class GuiModelPricesTab {
return tab; return tab;
} }
/**
* Benachrichtigt den Tab ueber eine geaenderte Konfiguration.
*
* <p>Aktualisiert den Aktivierungsstatus der Buttons anhand des aktuell vom
* {@code configPathSupplier} gelieferten Pfads. Muss auf dem JavaFX Application Thread
* aufgerufen werden.
*/
public void notifyConfigurationChanged() {
updateButtonStates();
}
/** /**
* Triggert ein Neuladen der Tabelle aus der aktuell geladenen Konfiguration. * Triggert ein Neuladen der Tabelle aus der aktuell geladenen Konfiguration.
*/ */