diff --git a/client/src/main/java/ctbrec/ui/settings/SettingsTab.java b/client/src/main/java/ctbrec/ui/settings/SettingsTab.java index f00fd657..1f324015 100644 --- a/client/src/main/java/ctbrec/ui/settings/SettingsTab.java +++ b/client/src/main/java/ctbrec/ui/settings/SettingsTab.java @@ -243,16 +243,16 @@ public class SettingsTab extends Tab implements TabSelectionListener { private void refreshChaturbateTabs() { getTabPane().getTabs().forEach(tab -> { if (tab.getContent() instanceof ThumbOverviewTab overviewTab) { - if (overviewTab.getUpdateService() instanceof ChaturbateTabProvider updateService) { - // Fetch the latest setting dynamically and rebuild the URL - boolean filterNA = settings.filterNAcamsOnly; - updateService.setUrl(updateService.buildUrl(updateService.getEndpoint(), filterNA)); - updateService.restart(); // Refresh tab content + if (overviewTab.updateService != null) { + overviewTab.updateService.cancel(); // Stop current update + overviewTab.updateService.reset(); // Reset service + overviewTab.updateService.restart(); // Restart service with new settings } } }); } + private void createGui() { var postProcessingStepPanel = new PostProcessingStepPanel(config); var variablesHelpButton = createHelpButton("Variables", "http://localhost:5689/docs/PostProcessing.md#variables");