Skip to content

Commit

Permalink
Merge pull request #42 from BDisp/v2_3761_2886-Draw-and-Layout-Perf-fix
Browse files Browse the repository at this point in the history
Fix SingleBackgroundWorker scenario.
  • Loading branch information
tig authored Nov 6, 2024
2 parents e6180b6 + 49d36f2 commit 720729d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions UICatalog/Scenarios/SingleBackgroundWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public MainApp ()
() => Application.RequestStop (),
null,
null,
KeyCode.CtrlMask | KeyCode.Q
Application.QuitKey
)
}
)
Expand Down Expand Up @@ -130,7 +130,7 @@ private void RunWorker ()
{
List<string> stageResult = new ();
for (var i = 0; i < 500; i++)
for (var i = 0; i < 200; i++)
{
stageResult.Add ($"Worker {i} started at {DateTime.Now}");
e.Result = stageResult;
Expand Down Expand Up @@ -204,7 +204,7 @@ public StagingUIController (DateTime? start, ObservableCollection<string> list)
{
_top = new()
{
Title = "_top", Width = Dim.Fill (), Height = Dim.Fill ()
Title = "_top", Width = Dim.Fill (), Height = Dim.Fill (), Modal = true
};

_top.KeyDown += (s, e) =>
Expand Down Expand Up @@ -275,6 +275,8 @@ bool Close ()
]);
_top.Add (statusBar);

Y = 1;
Height = Dim.Fill (1);
Title = $"Worker started at {start}.{start:fff}";
ColorScheme = Colors.ColorSchemes ["Base"];

Expand Down

0 comments on commit 720729d

Please sign in to comment.