1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-10 21:40:34 +08:00

Merge pull request #32111 from bdach/prevent-closing-team-channels-harder

Prevent closing team chat channels via Ctrl-W
This commit is contained in:
Dean Herbert 2025-02-27 12:55:54 +09:00 committed by GitHub
commit 66b8b527e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,7 +228,8 @@ namespace osu.Game.Overlays
return true;
case PlatformAction.DocumentClose:
channelManager.LeaveChannel(currentChannel.Value);
if (currentChannel.Value?.Type != ChannelType.Team)
channelManager.LeaveChannel(currentChannel.Value);
return true;
case PlatformAction.TabRestore: