fix: Modell-Preise Tab Buttons nach Start aktivieren (#74)
This commit is contained in:
+2
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+11
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user