mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Mark key and value non-nullable (at realm end) and simplify Value
logic
This commit is contained in:
@ -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());
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user