1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 03:42:57 +08:00

Update to not use obsoleted method

This commit is contained in:
Bartłomiej Dach 2024-05-24 10:21:40 +02:00
parent 4089071299
commit a80dbba9d0
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ namespace osu.Game.Tests.Visual.Editing
// It's important values are committed immediately on focus loss so the editor exit sequence detects them.
AddAssert("value immediately changed on focus loss", () =>
{
InputManager.TriggerFocusContention(metadataSection);
((IFocusManager)InputManager).TriggerFocusContention(metadataSection);
return editorBeatmap.Metadata.Artist;
}, () => Is.EqualTo("Example ArtistExample Artist"));
}

View File

@ -723,7 +723,7 @@ namespace osu.Game.Screens.Edit
//
// This is important to ensure that if the user is still editing a textbox, it will commit
// (and potentially block the exit procedure for save).
GetContainingInputManager().TriggerFocusContention(this);
GetContainingFocusManager().TriggerFocusContention(this);
if (!ExitConfirmed)
{