File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
osu.Game/Screens/OnlinePlay/Matchmaking/RankedPlay/Card Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public RankedPlayCard(RankedPlayCardWithPlaylistItem item)
101101 cardContent = new Container
102102 {
103103 RelativeSizeAxes = Axes . Both ,
104- Child = new RankedPlayCardBackSide ( )
104+ Child = Empty ( ) ,
105105 } ,
106106 selectionOutline = new SelectionOutline
107107 {
@@ -172,8 +172,14 @@ private void loadCardContentAsync(MultiplayerPlaylistItem playlistItem) => Task.
172172 } ) ;
173173 } ) ;
174174
175+ private bool hasContent ;
176+
175177 public void SetContent ( Drawable ? newContent )
176178 {
179+ if ( newContent == null && ! hasContent )
180+ return ;
181+
182+ hasContent = newContent != null ;
177183 content . ScaleTo ( new Vector2 ( 0 , 1 ) , 100 , Easing . In )
178184 . Then ( )
179185 . Schedule ( ( ) => cardContent . Child = newContent ?? Empty ( ) )
You can’t perform that action at this time.
0 commit comments