pub fn update_setting_with<F>( setting_id: &str, settings_query: Query<'_, '_, (Entity, &mut Setting)>, commands: Commands<'_, '_>, updater: F, ) -> boolwhere F: FnOnce(&SettingValue) -> Option<SettingValue>,
Helper function to update a setting value using a closure