Fixed more cases

This commit is contained in:
Tig
2024-11-25 20:53:20 -07:00
parent fd5a2b6b23
commit 88f3d05a19
7 changed files with 13 additions and 7 deletions

View File

@@ -59,6 +59,7 @@ internal partial class LoginView : IRecipient<Message<LoginActions>>
}
}
SetText();
// BUGBUG: This should not be needed:
Application.LayoutAndDraw ();
}

View File

@@ -205,7 +205,7 @@ public static partial class Application // Keyboard handling
Command.Refresh,
static () =>
{
LayoutAndDraw ();
LayoutAndDraw (true);
return true;
}

View File

@@ -508,7 +508,6 @@ public static partial class Application // Run (Begin, Run, End, Stop)
if (ClearScreenNextIteration)
{
forceDraw = true;
ClearScreenNextIteration = false;
}
if (forceDraw)
{

View File

@@ -63,7 +63,7 @@ public static partial class Application // Screen related stuff
t.SetNeedsLayout ();
}
LayoutAndDraw ();
LayoutAndDraw (true);
return true;
}

View File

@@ -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;
}
}
}

View File

@@ -608,8 +608,7 @@ internal sealed class Menu : View
Application.UngrabMouse ();
_host.CloseAllMenus ();
Application.Driver!.ClearContents ();
Application.LayoutAndDraw ();
Application.LayoutAndDraw (true);
_host.Run (action);
}

View File

@@ -1117,7 +1117,7 @@ public class MenuBar : View, IDesignable
Application.UngrabMouse ();
CloseAllMenus ();
Application.LayoutAndDraw ();
Application.LayoutAndDraw (true);
_openedByAltKey = true;
return Run (item.Action);