mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Invalidate working beatmap cache when calling DeleteDifficultyImmediately
rather than in editor code
This commit is contained in:
@ -385,6 +385,7 @@ namespace osu.Game.Beatmaps
|
|||||||
setInfo.Beatmaps.Remove(beatmapInfo);
|
setInfo.Beatmaps.Remove(beatmapInfo);
|
||||||
|
|
||||||
updateHashAndMarkDirty(setInfo);
|
updateHashAndMarkDirty(setInfo);
|
||||||
|
workingBeatmapCache.Invalidate(setInfo);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -929,7 +929,7 @@ namespace osu.Game.Screens.Edit
|
|||||||
// of note, we're still working with the cloned version, so indices are all prior to deletion.
|
// of note, we're still working with the cloned version, so indices are all prior to deletion.
|
||||||
BeatmapInfo nextToShow = difficultiesBeforeDeletion[deletedIndex == 0 ? 1 : deletedIndex - 1];
|
BeatmapInfo nextToShow = difficultiesBeforeDeletion[deletedIndex == 0 ? 1 : deletedIndex - 1];
|
||||||
|
|
||||||
Beatmap.Value = beatmapManager.GetWorkingBeatmap(nextToShow, true);
|
Beatmap.Value = beatmapManager.GetWorkingBeatmap(nextToShow);
|
||||||
|
|
||||||
SwitchToDifficulty(nextToShow);
|
SwitchToDifficulty(nextToShow);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user