This commit is contained in:
J62 2025-03-15 16:54:33 -07:00
parent 41ddc25cc9
commit 2622305951
2 changed files with 4 additions and 2 deletions

View File

@ -215,6 +215,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
naCamsOnly = new SimpleBooleanProperty(null, "filterNAcamsOnly", settings.filterNAcamsOnly);
naCamsOnly.addListener((obs, oldValue, newValue) -> {
settings.filterNAcamsOnly = newValue;
Config.getInstance().getSettings().filterNAcamsOnly = newValue; // Ensure the config is updated
saveConfig();
refreshChaturbateTabs(); // Refresh tabs when the setting changes
});

View File

@ -80,8 +80,9 @@ public class ChaturbateTabProvider extends AbstractTabProvider {
}
private String buildUrl(String endpoint) {
boolean filterNA = Config.getInstance().isFilterNAcamsOnlyEnabled(); // Fetch latest setting
return apiUrl + endpoint + (filterNA ? "&regions=NA" : "");
return apiUrl + endpoint + (Config.getInstance().getSettings().filterNAcamsOnly ? "&regions=NA" : "");
}
}