Compare commits

..

No commits in common. "809325ebac57b24471cf94098c7a58d5bef656ac" and "ec4e5e9ba21d36850a65cd0d0da4f1352e963914" have entirely different histories.

1 changed files with 8 additions and 7 deletions

View File

@ -35,7 +35,6 @@ import javafx.scene.control.TextInputDialog;
import javafx.scene.layout.*;
import javafx.scene.paint.Color;
import javafx.util.Duration;
import javafx.scene.Parent;
import lombok.Getter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -243,18 +242,20 @@ public class SettingsTab extends Tab implements TabSelectionListener {
private void refreshChaturbateTabs() {
getTabPane().getTabs().forEach(tab -> {
Node content = tab.getContent();
if (content instanceof ThumbOverviewTab overviewTab) {
if (overviewTab.getUpdateService() != null) {
overviewTab.getUpdateService().reset();
overviewTab.getUpdateService().restart();
if (tab.getContent() instanceof Parent parent) { // Ensure it's a Parent
for (Node node : parent.getChildrenUnmodifiable()) {
if (node instanceof ThumbOverviewTab overviewTab) {
if (overviewTab.getUpdateService() != null) {
overviewTab.getUpdateService().reset();
overviewTab.getUpdateService().restart();
}
}
}
}
});
}
private void createGui() {
var postProcessingStepPanel = new PostProcessingStepPanel(config);
var variablesHelpButton = createHelpButton("Variables", "http://localhost:5689/docs/PostProcessing.md#variables");