1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 15:27:20 +08:00

Fix selected room bindable being set to null regardless of the removed room

This commit is contained in:
Salman Ahmed 2024-02-05 00:30:48 +03:00
parent c64d414d1b
commit 6f9ee3f526

View File

@ -146,7 +146,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
roomFlow.RemoveAll(d => d.Room == r, true);
// selection may have a lease due to being in a sub screen.
if (!SelectedRoom.Disabled)
if (SelectedRoom.Value == r && !SelectedRoom.Disabled)
SelectedRoom.Value = null;
}
}