mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Move RealmRulesetStore
initial work off incorrect thread
This commit is contained in:
@ -102,7 +102,9 @@ namespace osu.Game.Stores
|
|||||||
|
|
||||||
private void addMissingRulesets()
|
private void addMissingRulesets()
|
||||||
{
|
{
|
||||||
realmFactory.Context.Write(realm =>
|
using (var context = realmFactory.CreateContext())
|
||||||
|
{
|
||||||
|
context.Write(realm =>
|
||||||
{
|
{
|
||||||
var rulesets = realm.All<RealmRuleset>();
|
var rulesets = realm.All<RealmRuleset>();
|
||||||
|
|
||||||
@ -172,6 +174,7 @@ namespace osu.Game.Stores
|
|||||||
availableRulesets.AddRange(detachedRulesets);
|
availableRulesets.AddRange(detachedRulesets);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void loadFromAppDomain()
|
private void loadFromAppDomain()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user