mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Hide Popover after failed password attempt
Instead of throwing an error, just close the popover and let the user continue
This commit is contained in:
@ -87,7 +87,8 @@ namespace osu.Game.Screens.OnlinePlay.Components
|
||||
|
||||
currentJoinRoomRequest.Failure += exception =>
|
||||
{
|
||||
if (!(exception is OperationCanceledException))
|
||||
// provide error output if the operation wasn't canceled and the error doesn't stem from an invalid password
|
||||
if (!(exception is OperationCanceledException) && !((APIException)exception).Message.Equals("Invalid room password", StringComparison.Ordinal))
|
||||
Logger.Log($"Failed to join room: {exception}", level: LogLevel.Important);
|
||||
onError?.Invoke(exception.ToString());
|
||||
};
|
||||
|
Reference in New Issue
Block a user