1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:23:22 +08:00

silently return instead of throwing

This commit is contained in:
Unknown 2019-01-24 16:02:47 +01:00
parent 93c9037394
commit 2bbaa2ac60

View File

@ -160,12 +160,8 @@ namespace osu.Game.Overlays
{
if (configManager == null) throw new ArgumentNullException(nameof(configManager));
var trackedSettings = configManager.CreateTrackedSettings();
if (trackedSettings == null)
return;
if (!trackedConfigManagers.TryGetValue((source, configManager), out var existing))
throw new InvalidOperationException($"{nameof(configManager)} is not registered.");
return;
existing.Unload();
existing.SettingChanged -= display;