mirror of
https://github.com/ppy/osu
synced 2025-02-06 05:12:12 +00:00
Add refetch for non-managed hide/restore attempts
This commit is contained in:
parent
e0c59f4b3c
commit
d5239d550a
@ -122,6 +122,9 @@ namespace osu.Game.Beatmaps
|
||||
using (var realm = contextFactory.CreateContext())
|
||||
using (var transaction = realm.BeginWrite())
|
||||
{
|
||||
if (!beatmapInfo.IsManaged)
|
||||
beatmapInfo = realm.Find<BeatmapInfo>(beatmapInfo.ID);
|
||||
|
||||
beatmapInfo.Hidden = true;
|
||||
transaction.Commit();
|
||||
}
|
||||
@ -136,6 +139,9 @@ namespace osu.Game.Beatmaps
|
||||
using (var realm = contextFactory.CreateContext())
|
||||
using (var transaction = realm.BeginWrite())
|
||||
{
|
||||
if (!beatmapInfo.IsManaged)
|
||||
beatmapInfo = realm.Find<BeatmapInfo>(beatmapInfo.ID);
|
||||
|
||||
beatmapInfo.Hidden = false;
|
||||
transaction.Commit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user