mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixed more cases
This commit is contained in:
@@ -59,6 +59,7 @@ internal partial class LoginView : IRecipient<Message<LoginActions>>
|
||||
}
|
||||
}
|
||||
SetText();
|
||||
// BUGBUG: This should not be needed:
|
||||
Application.LayoutAndDraw ();
|
||||
}
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ public static partial class Application // Keyboard handling
|
||||
Command.Refresh,
|
||||
static () =>
|
||||
{
|
||||
LayoutAndDraw ();
|
||||
LayoutAndDraw (true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -508,7 +508,6 @@ public static partial class Application // Run (Begin, Run, End, Stop)
|
||||
if (ClearScreenNextIteration)
|
||||
{
|
||||
forceDraw = true;
|
||||
ClearScreenNextIteration = false;
|
||||
}
|
||||
if (forceDraw)
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ public static partial class Application // Screen related stuff
|
||||
t.SetNeedsLayout ();
|
||||
}
|
||||
|
||||
LayoutAndDraw ();
|
||||
LayoutAndDraw (true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -369,7 +369,14 @@ public partial class View : IDisposable, ISupportInitializeNotification
|
||||
SetNeedsLayout ();
|
||||
SuperView?.SetNeedsLayout ();
|
||||
SetNeedsDraw ();
|
||||
SuperView?.SetNeedsDraw ();
|
||||
if (SuperView is { })
|
||||
{
|
||||
SuperView?.SetNeedsDraw ();
|
||||
}
|
||||
else
|
||||
{
|
||||
Application.ClearScreenNextIteration = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -608,8 +608,7 @@ internal sealed class Menu : View
|
||||
|
||||
Application.UngrabMouse ();
|
||||
_host.CloseAllMenus ();
|
||||
Application.Driver!.ClearContents ();
|
||||
Application.LayoutAndDraw ();
|
||||
Application.LayoutAndDraw (true);
|
||||
|
||||
_host.Run (action);
|
||||
}
|
||||
|
||||
@@ -1117,7 +1117,7 @@ public class MenuBar : View, IDesignable
|
||||
|
||||
Application.UngrabMouse ();
|
||||
CloseAllMenus ();
|
||||
Application.LayoutAndDraw ();
|
||||
Application.LayoutAndDraw (true);
|
||||
_openedByAltKey = true;
|
||||
|
||||
return Run (item.Action);
|
||||
|
||||
Reference in New Issue
Block a user