mirror of https://github.com/ppy/osu
Merge branch 'realm-ruleset-setting-short-name' into realm-ruleset-keybinding-short-name
This commit is contained in:
commit
d9917ee6c7
|
@ -296,14 +296,8 @@ void convertOnlineIDs<T>() where T : RealmObject
|
|||
}
|
||||
}
|
||||
|
||||
private string? getRulesetShortNameFromLegacyID(long rulesetId)
|
||||
{
|
||||
if (efContextFactory == null)
|
||||
return null;
|
||||
|
||||
using (var efContext = efContextFactory.Get())
|
||||
return efContext.RulesetInfo.First(r => r.ID == rulesetId)?.ShortName;
|
||||
}
|
||||
private string? getRulesetShortNameFromLegacyID(long rulesetId) =>
|
||||
efContextFactory?.Get().RulesetInfo.First(r => r.ID == rulesetId)?.ShortName;
|
||||
|
||||
/// <summary>
|
||||
/// Flush any active contexts and block any further writes.
|
||||
|
|
Loading…
Reference in New Issue