Skip to content

Commit

Permalink
Fix compiler error with Terminal.Color.-1.
Browse files Browse the repository at this point in the history
  • Loading branch information
BDisp committed Aug 25, 2023
1 parent 41e15b5 commit 180f215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ToCode/ViewToCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void GenerateDesignerCs(Design rootDesign, Type viewType)

File.WriteAllText(
file.DesignerFile.FullName,
TrimHeader(sw.ToString()));
TrimHeader(sw.ToString().Replace("Terminal.Gui.Color.-1", "(Color)(-1)")));
}
}

Expand Down

0 comments on commit 180f215

Please sign in to comment.