GUI/SystemTray.cs
changeset 166 fa9dfbfc4145
parent 165 813d8bc3192f
child 303 f6db7258890e
     1.1 --- a/GUI/SystemTray.cs	Sun Aug 08 13:57:26 2010 +0000
     1.2 +++ b/GUI/SystemTray.cs	Thu Aug 12 20:53:27 2010 +0000
     1.3 @@ -97,7 +97,7 @@
     1.4      }
     1.5  
     1.6      private void SensorAdded(ISensor sensor) {
     1.7 -      if (settings.Get(new Identifier(sensor.Identifier, 
     1.8 +      if (settings.GetValue(new Identifier(sensor.Identifier, 
     1.9          "tray").ToString(), false)) 
    1.10          Add(sensor, false);   
    1.11      }
    1.12 @@ -131,7 +131,7 @@
    1.13        } else {        
    1.14          list.Add(new SensorNotifyIcon(this, sensor, balloonTip, settings));
    1.15          UpdateMainIconVisibilty();
    1.16 -        settings.Set(new Identifier(sensor.Identifier, "tray").ToString(), true);
    1.17 +        settings.SetValue(new Identifier(sensor.Identifier, "tray").ToString(), true);
    1.18        }
    1.19      }
    1.20