mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
fixed Top issue
This commit is contained in:
@@ -51,7 +51,7 @@ namespace UICatalog.Scenarios {
|
||||
public override void Init (Toplevel top, ColorScheme colorScheme)
|
||||
{
|
||||
Application.Init ();
|
||||
Top = top;
|
||||
Top = top != null ? top : Application.Top;
|
||||
|
||||
Win = new TestWindow ($"CTRL-Q to Close - Scenario: {GetName ()}") {
|
||||
X = 0,
|
||||
|
||||
@@ -14,11 +14,7 @@ namespace UICatalog.Scenarios {
|
||||
public override void Init (Toplevel top, ColorScheme colorScheme)
|
||||
{
|
||||
Application.Init ();
|
||||
|
||||
Top = top;
|
||||
if (Top == null) {
|
||||
Top = Application.Top;
|
||||
}
|
||||
Top = top != null ? top : Application.Top;
|
||||
Top.ColorScheme = Colors.Base;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user