From 49d36f270f368b78cadc1c4b0df79efc58cc915c Mon Sep 17 00:00:00 2001 From: BDisp Date: Wed, 6 Nov 2024 17:50:23 +0000 Subject: [PATCH] Fix SingleBackgroundWorker scenario. --- UICatalog/Scenarios/SingleBackgroundWorker.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/UICatalog/Scenarios/SingleBackgroundWorker.cs b/UICatalog/Scenarios/SingleBackgroundWorker.cs index ca51321ed6..66b9fc2ef0 100644 --- a/UICatalog/Scenarios/SingleBackgroundWorker.cs +++ b/UICatalog/Scenarios/SingleBackgroundWorker.cs @@ -51,7 +51,7 @@ public MainApp () () => Application.RequestStop (), null, null, - KeyCode.CtrlMask | KeyCode.Q + Application.QuitKey ) } ) @@ -130,7 +130,7 @@ private void RunWorker () { List 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; @@ -204,7 +204,7 @@ public StagingUIController (DateTime? start, ObservableCollection 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) => @@ -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"];