소스 검색

Remove unnecessary conditional statement.

BDisp 8 달 전
부모
커밋
be0832febb
1개의 변경된 파일4개의 추가작업 그리고 7개의 파일을 삭제
  1. 4 7
      Terminal.Gui/Views/TabView/TabRowView.cs

+ 4 - 7
Terminal.Gui/Views/TabView/TabRowView.cs

@@ -113,17 +113,14 @@ internal class TabRowView : View
         base.OnHasFocusChanged (newHasFocus, previousFocusedView, focusedView);
     }
 
-    /// <inheritdoc />
+    /// <inheritdoc/>
     protected override void OnSubviewLayout (LayoutEventArgs args)
     {
-        if (NeedsLayout)
-        {
-            _host._tabLocations = _host.CalculateViewport (Viewport).ToArray ();
+        _host._tabLocations = _host.CalculateViewport (Viewport).ToArray ();
 
-            RenderTabLine ();
+        RenderTabLine ();
 
-            RenderUnderline ();
-        }
+        RenderUnderline ();
 
         base.OnSubviewLayout (args);
     }