mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 04:19:53 +08:00
Hide user style edit button when not downloaded
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -641,6 +641,9 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
||||
RequestEdit = _ => showUserStyleSelect()
|
||||
};
|
||||
}
|
||||
|
||||
DrawableRoomPlaylistItem panel = userStyleDisplayContainer.Single();
|
||||
panel.AllowEditing = localBeatmap != null;
|
||||
}
|
||||
else
|
||||
userStyleSection.Hide();
|
||||
|
||||
Reference in New Issue
Block a user