mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09: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 realm = contextFactory.CreateContext())
|
||||||
using (var transaction = realm.BeginWrite())
|
using (var transaction = realm.BeginWrite())
|
||||||
{
|
{
|
||||||
|
if (!beatmapInfo.IsManaged)
|
||||||
|
beatmapInfo = realm.Find<BeatmapInfo>(beatmapInfo.ID);
|
||||||
|
|
||||||
beatmapInfo.Hidden = true;
|
beatmapInfo.Hidden = true;
|
||||||
transaction.Commit();
|
transaction.Commit();
|
||||||
}
|
}
|
||||||
@ -136,6 +139,9 @@ namespace osu.Game.Beatmaps
|
|||||||
using (var realm = contextFactory.CreateContext())
|
using (var realm = contextFactory.CreateContext())
|
||||||
using (var transaction = realm.BeginWrite())
|
using (var transaction = realm.BeginWrite())
|
||||||
{
|
{
|
||||||
|
if (!beatmapInfo.IsManaged)
|
||||||
|
beatmapInfo = realm.Find<BeatmapInfo>(beatmapInfo.ID);
|
||||||
|
|
||||||
beatmapInfo.Hidden = false;
|
beatmapInfo.Hidden = false;
|
||||||
transaction.Commit();
|
transaction.Commit();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user