This commit is contained in:
J62 2025-03-15 16:29:10 -07:00
parent 819c80ca30
commit ec4e5e9ba2
1 changed files with 8 additions and 5 deletions

View File

@ -242,11 +242,14 @@ 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();
}
}
}
}
});