This commit is contained in:
parent
41ddc25cc9
commit
2622305951
|
@ -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
|
||||
});
|
||||
|
|
|
@ -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 ? "®ions=NA" : "");
|
||||
return apiUrl + endpoint + (Config.getInstance().getSettings().filterNAcamsOnly ? "®ions=NA" : "");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue