Mark key and value non-nullable (at realm end) and simplify Value logic

This commit is contained in:
Dean Herbert
2021-09-15 17:12:00 +09:00
parent a150fb2996
commit a1d325cb22
3 changed files with 7 additions and 12 deletions

View File

@ -68,7 +68,7 @@ namespace osu.Game.Rulesets.Configuration
setting = new RealmRulesetSetting
{
Key = lookup.ToString(),
Value = bindable.Value,
Value = bindable.Value.ToString(),
RulesetID = rulesetId,
Variant = variant,
};
@ -80,7 +80,7 @@ namespace osu.Game.Rulesets.Configuration
bindable.ValueChanged += b =>
{
realmFactory?.Context.Write(() => setting.Value = b.NewValue);
realmFactory?.Context.Write(() => setting.Value = b.NewValue.ToString());
};
}
}