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:
parent
93c9037394
commit
2bbaa2ac60
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user