mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Merge pull request #27839 from smoogipoo/fix-macos-crash
Fix crash when entering multiplayer on macOS
This commit is contained in:
commit
b7b3401b34
@ -205,7 +205,9 @@ namespace osu.Desktop
|
|||||||
Password = room.Settings.Password,
|
Password = room.Settings.Password,
|
||||||
};
|
};
|
||||||
|
|
||||||
presence.Secrets.JoinSecret = JsonConvert.SerializeObject(roomSecret);
|
if (client.HasRegisteredUriScheme)
|
||||||
|
presence.Secrets.JoinSecret = JsonConvert.SerializeObject(roomSecret);
|
||||||
|
|
||||||
// discord cannot handle both secrets and buttons at the same time, so we need to choose something.
|
// discord cannot handle both secrets and buttons at the same time, so we need to choose something.
|
||||||
// the multiplayer room seems more important.
|
// the multiplayer room seems more important.
|
||||||
presence.Buttons = null;
|
presence.Buttons = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user