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() {
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");