This commit is contained in:
J62 2025-03-15 16:20:59 -07:00
parent 6dbbde9d80
commit f59bf26d54
1 changed files with 5 additions and 5 deletions

View File

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