浏览代码

Un did stoopid idea.

Tig 3 周之前
父节点
当前提交
0a43202b01
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      Terminal.Gui/App/ApplicationImpl.Run.cs

+ 0 - 8
Terminal.Gui/App/ApplicationImpl.Run.cs

@@ -52,7 +52,6 @@ public partial class ApplicationImpl
                 // clean it up here if is the same as _CachedSessionTokenToplevel
                 if (Current == CachedSessionTokenToplevel)
                 {
-                    Current.App = null;
                     Current = null;
                 }
                 else
@@ -116,8 +115,6 @@ public partial class ApplicationImpl
                 Current?.OnDeactivate (toplevel);
                 Toplevel previousTop = Current!;
 
-                previousTop.App = null;
-
                 Current = toplevel;
                 Current.App = Instance;
                 Current.OnActivate (previousTop);
@@ -256,11 +253,6 @@ public partial class ApplicationImpl
 
         if (SessionStack.TryPeek (out Toplevel? newTop))
         {
-            if (Current is { })
-            {
-                Current.App = null;
-            }
-
             newTop.App = Instance;
             Current = newTop;
             Current?.SetNeedsDraw ();