mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 01:07:58 +01:00
V2 fix warnings (#3671)
* Fixed NumericUpDown warning * Fixed Aot Warning * Fixed warnings in Application.cs * Fixed more NumericUpDown warning * Fixed CommandImpl warning * Fixed Thickness warnings * Fixed Label warning * Fixed warning * Fixed menubar test warning * Fixed warnings * Fixed warnings * Removed dead code * Fixed warnings
This commit is contained in:
@@ -17,14 +17,14 @@ public static class Program
|
||||
|
||||
#region The code in this region is not intended for use in a native Aot self-contained. It's just here to make sure there is no functionality break with localization in Terminal.Gui using self-contained
|
||||
|
||||
if (Equals(Thread.CurrentThread.CurrentUICulture, CultureInfo.InvariantCulture) && Application.SupportedCultures.Count == 0)
|
||||
if (Equals(Thread.CurrentThread.CurrentUICulture, CultureInfo.InvariantCulture) && Application.SupportedCultures!.Count == 0)
|
||||
{
|
||||
// Only happens if the project has <InvariantGlobalization>true</InvariantGlobalization>
|
||||
Debug.Assert (Application.SupportedCultures.Count == 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Assert (Application.SupportedCultures.Count > 0);
|
||||
Debug.Assert (Application.SupportedCultures!.Count > 0);
|
||||
Debug.Assert (Equals (CultureInfo.CurrentCulture, Thread.CurrentThread.CurrentUICulture));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user