瀏覽代碼

Removed debug spew.

Tig 1 年之前
父節點
當前提交
80d8e87639

+ 1 - 1
Terminal.Gui/Application.cs

@@ -1510,7 +1510,7 @@ public static partial class Application
 
         WantContinuousButtonPressedView = view.WantContinuousButtonPressed ? view : null;
 
-        Debug.WriteLine ($"OnMouseEvent: ({a.MouseEvent.X},{a.MouseEvent.Y}) - {a.MouseEvent.Flags}");
+        //Debug.WriteLine ($"OnMouseEvent: ({a.MouseEvent.X},{a.MouseEvent.Y}) - {a.MouseEvent.Flags}");
 
         if (view.OnMouseEvent (me))
         {

+ 3 - 3
Terminal.Gui/Configuration/ConfigurationManager.cs

@@ -518,7 +518,7 @@ public static class ConfigurationManager
             classesWithConfigProps.Add (classWithConfig.Name, classWithConfig);
         }
 
-        Debug.WriteLine ($"ConfigManager.getConfigProperties found {classesWithConfigProps.Count} classes:");
+        //Debug.WriteLine ($"ConfigManager.getConfigProperties found {classesWithConfigProps.Count} classes:");
         classesWithConfigProps.ToList ().ForEach (x => Debug.WriteLine ($"  Class: {x.Key}"));
 
         foreach (PropertyInfo? p in from c in classesWithConfigProps
@@ -573,7 +573,7 @@ public static class ConfigurationManager
                                                                    StringComparer.InvariantCultureIgnoreCase
                                                                   );
 
-        Debug.WriteLine ($"ConfigManager.Initialize found {_allConfigProperties.Count} properties:");
+        //Debug.WriteLine ($"ConfigManager.Initialize found {_allConfigProperties.Count} properties:");
 
         //_allConfigProperties.ToList ().ForEach (x => Debug.WriteLine ($"  Property: {x.Key}"));
 
@@ -584,7 +584,7 @@ public static class ConfigurationManager
     /// <returns></returns>
     internal static string ToJson ()
     {
-        Debug.WriteLine ("ConfigurationManager.ToJson()");
+        //Debug.WriteLine ("ConfigurationManager.ToJson()");
 
         return JsonSerializer.Serialize (Settings!, _serializerOptions);
     }

+ 2 - 2
Terminal.Gui/Configuration/ThemeManager.cs

@@ -111,7 +111,7 @@ public class ThemeManager : IDictionary<string, ThemeScope>
 
     internal static void GetHardCodedDefaults ()
     {
-        Debug.WriteLine ("Themes.GetHardCodedDefaults()");
+        //Debug.WriteLine ("Themes.GetHardCodedDefaults()");
         var theme = new ThemeScope ();
         theme.RetrieveValues ();
 
@@ -125,7 +125,7 @@ public class ThemeManager : IDictionary<string, ThemeScope>
     /// <summary>Called when the selected theme has changed. Fires the <see cref="ThemeChanged"/> event.</summary>
     internal void OnThemeChanged (string theme)
     {
-        Debug.WriteLine ($"Themes.OnThemeChanged({theme}) -> {Theme}");
+        //Debug.WriteLine ($"Themes.OnThemeChanged({theme}) -> {Theme}");
         ThemeChanged?.Invoke (this, new ThemeManagerEventArgs (theme));
     }
 

+ 2 - 2
Terminal.Gui/ConsoleDrivers/NetDriver.cs

@@ -1137,7 +1137,7 @@ internal class NetDriver : ConsoleDriver
                 break;
             case EventType.Mouse:
                 MouseEvent me = ToDriverMouse (inputEvent.MouseEvent);
-                Debug.WriteLine ($"NetDriver: ({me.X},{me.Y}) - {me.Flags}");
+                //Debug.WriteLine ($"NetDriver: ({me.X},{me.Y}) - {me.Flags}");
                 OnMouseEvent (new MouseEventEventArgs (me));
 
                 break;
@@ -1379,7 +1379,7 @@ internal class NetDriver : ConsoleDriver
 
     private MouseEvent ToDriverMouse (NetEvents.MouseEvent me)
     {
-        System.Diagnostics.Debug.WriteLine ($"X: {me.Position.X}; Y: {me.Position.Y}; ButtonState: {me.ButtonState}");
+       // System.Diagnostics.Debug.WriteLine ($"X: {me.Position.X}; Y: {me.Position.Y}; ButtonState: {me.ButtonState}");
 
         MouseFlags mouseFlag = 0;