Browse Source

Fixed release build issue

Tig 10 months ago
parent
commit
a0fcfa0c99

+ 0 - 2
Terminal.Gui/Application/ApplicationNavigation.cs

@@ -83,8 +83,6 @@ public class ApplicationNavigation
             return;
         }
 
-        //Debug.Assert(value is {});
-
         _focused = value;
 
         FocusedChanged?.Invoke (null, EventArgs.Empty);

+ 2 - 2
Terminal.Gui/View/Adornment/Border.cs

@@ -289,7 +289,7 @@ public class Border : Adornment
         // BUGBUG: See https://github.com/gui-cs/Terminal.Gui/issues/3312
         if (!_dragPosition.HasValue && mouseEvent.Flags.HasFlag (MouseFlags.Button1Pressed))
         {
-            Parent.SetFocus ();
+            Parent!.SetFocus ();
             ApplicationOverlapped.BringOverlappedTopToFront ();
 
             if (!Parent!.Arrangement.HasFlag (ViewArrangement.Movable)
@@ -451,7 +451,7 @@ public class Border : Adornment
         {
             if (_dragPosition.HasValue)
             {
-                if (Parent.SuperView is null)
+                if (Parent!.SuperView is null)
                 {
                     // Redraw the entire app window.
                     Application.Top!.SetNeedsDisplay ();

+ 0 - 1
Terminal.Gui/View/View.Navigation.cs

@@ -589,7 +589,6 @@ public partial class View // Focus and cross-view navigation management (TabStop
         {
             if (superViewOrParent?._previouslyFocused is { })
             {
-                Debug.Assert (!superViewOrParent._previouslyFocused.WasDisposed);
                 if (superViewOrParent._previouslyFocused != this)
                 {
                     superViewOrParent?._previouslyFocused?.SetFocus ();