From 9d2ba062878f53aeff9c7d5a46b4e73f95db0bef Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Mon, 14 Jul 2025 17:57:24 +0900 Subject: [PATCH] Hide user style edit button when not downloaded --- .../OnlinePlay/Multiplayer/MultiplayerMatchSubScreen.cs | 6 ++++-- .../Screens/OnlinePlay/Playlists/PlaylistsRoomSubScreen.cs | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/osu.Game/Screens/OnlinePlay/Multiplayer/MultiplayerMatchSubScreen.cs b/osu.Game/Screens/OnlinePlay/Multiplayer/MultiplayerMatchSubScreen.cs index 9f360eca72..7708bd7b50 100644 --- a/osu.Game/Screens/OnlinePlay/Multiplayer/MultiplayerMatchSubScreen.cs +++ b/osu.Game/Screens/OnlinePlay/Multiplayer/MultiplayerMatchSubScreen.cs @@ -657,10 +657,12 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer userStyleDisplayContainer.Child = new DrawableRoomPlaylistItem(apiItem, true) { AllowReordering = false, - AllowEditing = true, - RequestEdit = _ => showUserStyleSelect() + RequestEdit = _ => ShowUserStyleSelect() }; } + + DrawableRoomPlaylistItem panel = userStyleDisplayContainer.Single(); + panel.AllowEditing = localBeatmap != null; } else userStyleSection.Hide(); diff --git a/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsRoomSubScreen.cs b/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsRoomSubScreen.cs index cfd651ba4d..a0aca4b166 100644 --- a/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsRoomSubScreen.cs +++ b/osu.Game/Screens/OnlinePlay/Playlists/PlaylistsRoomSubScreen.cs @@ -641,6 +641,9 @@ namespace osu.Game.Screens.OnlinePlay.Playlists RequestEdit = _ => showUserStyleSelect() }; } + + DrawableRoomPlaylistItem panel = userStyleDisplayContainer.Single(); + panel.AllowEditing = localBeatmap != null; } else userStyleSection.Hide();