Fix externally changed settings from being reset when ModSelectOverlay is initialised

This commit is contained in:
Dean Herbert
2021-02-10 15:12:29 +09:00
parent 75bc9f607e
commit a39263423c
2 changed files with 15 additions and 6 deletions

View File

@ -197,9 +197,10 @@ namespace osu.Game.Overlays.Mods
continue;
var buttonMod = button.Mods[index];
button.SelectAt(index);
// the selection above will reset settings to defaults, but as this is an external change we want to copy the new settings across.
button.SelectAt(index, false);
// as this is likely coming from an external change, ensure the settings of the mod are in sync.
buttonMod.CopyFrom(mod);
return;
}