/[RomCheater]/trunk/RomCheater/RomCheaterConfigDialog.cs
ViewVC logotype

Diff of /trunk/RomCheater/RomCheaterConfigDialog.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/RomCheaterConfigDialog.cs	2012/05/10 14:01:31	112
+++ trunk/RomCheater/RomCheaterConfigDialog.cs	2012/05/10 14:12:09	114
@@ -79,6 +79,12 @@
         {
             logger.Debug.WriteLine("Loading logger flags...");
             loggerflags logflags = Logging.Properties.Settings.Default.LoggingFlags;
+
+            if (logflags != logger.GetLoggingFlags())
+            {
+                logflags = logger.GetLoggingFlags(); // we apparently have forced the logging flags (possible for testing)
+            }
+
             foreach (loggerflags flags in loggerflags.GetValues())
             {
                 if (flags == loggerflags.ALL ||
@@ -144,7 +150,7 @@
         private void SaveLoggingFlags()
         {
             logger.Debug.WriteLine("Saving Logger flags...");
-            loggerflags logflags = loggerflags.NONE;
+            ushort logflags = loggerflags.NONE;
             foreach (CheckBox cb in grpLoggingFlags_flow.Controls)
             {
                 if (!cb.Checked) continue;

 

  ViewVC Help
Powered by ViewVC 1.1.22