@@ -427,7 +427,7 @@ private void DrawCollectionName(ModCollection collection)
427427 ImGui . Dummy ( Vector2 . One ) ;
428428 using var color = ImRaii . PushColor ( ImGuiCol . Border , Colors . MetaInfoText ) ;
429429 using var style = ImRaii . PushStyle ( ImGuiStyleVar . FrameBorderSize , 2 * UiHelpers . Scale ) ;
430- using var f = _nameFont . Available ? _nameFont . Push ( ) : null ;
430+ using var f = _nameFont . Push ( ) ;
431431 var name = Name ( collection ) ;
432432 var size = ImGui . CalcTextSize ( name ) . X ;
433433 var pos = ImGui . GetContentRegionAvail ( ) . X - size + ImGui . GetStyle ( ) . FramePadding . X * 2 ;
@@ -446,7 +446,7 @@ private void DrawStatistics(ModCollection collection)
446446 if ( _inUseCache . Count == 0 && collection . DirectParentOf . Count == 0 )
447447 {
448448 ImGui . Dummy ( Vector2 . One ) ;
449- using var f = _nameFont . Available ? _nameFont . Push ( ) : null ;
449+ using var f = _nameFont . Push ( ) ;
450450 ImGuiUtil . DrawTextButton ( "Collection is not used." , new Vector2 ( ImGui . GetContentRegionAvail ( ) . X , buttonHeight ) ,
451451 Colors . PressEnterWarningBg ) ;
452452 ImGui . Dummy ( Vector2 . One ) ;
@@ -513,7 +513,7 @@ private void DrawInheritanceStatistics(ModCollection collection, Vector2 buttonW
513513 ImGuiUtil . DrawTextButton ( "Inherited by" , ImGui . GetContentRegionAvail ( ) with { Y = 0 } , 0 ) ;
514514 }
515515
516- using var f = _nameFont . Available ? _nameFont . Push ( ) : null ;
516+ using var f = _nameFont . Push ( ) ;
517517 using var style = ImRaii . PushStyle ( ImGuiStyleVar . FrameBorderSize , ImGuiHelpers . GlobalScale ) ;
518518 using var color = ImRaii . PushColor ( ImGuiCol . Border , Colors . MetaInfoText ) ;
519519 ImGuiUtil . DrawTextButton ( Name ( collection . DirectParentOf [ 0 ] ) , Vector2 . Zero , 0 ) ;
0 commit comments