Compare commits

...

2 Commits

Author SHA1 Message Date
J62 809325ebac d5 2025-03-15 16:31:29 -07:00
J62 e58f491887 d5 2025-03-15 16:30:55 -07:00
1 changed files with 7 additions and 8 deletions

View File

@ -35,6 +35,7 @@ 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;
@ -242,20 +243,18 @@ public class SettingsTab extends Tab implements TabSelectionListener {
private void refreshChaturbateTabs() {
getTabPane().getTabs().forEach(tab -> {
if (tab.getContent() instanceof Parent parent) { // Ensure it's a Parent
for (Node node : parent.getChildrenUnmodifiable()) {
if (node instanceof ThumbOverviewTab overviewTab) {
Node content = tab.getContent();
if (content 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");