1.1 --- a/GUI/SensorSystemTray.cs Tue May 04 17:32:41 2010 +0000
1.2 +++ b/GUI/SensorSystemTray.cs Thu May 06 19:20:38 2010 +0000
1.3 @@ -73,7 +73,8 @@
1.4 }
1.5
1.6 private void SensorAdded(ISensor sensor) {
1.7 - if (Config.Get(sensor.Identifier + "/tray", false))
1.8 + if (Config.Get(new Identifier(sensor.Identifier,
1.9 + "tray").ToString(), false))
1.10 Add(sensor, false);
1.11 }
1.12
1.13 @@ -104,7 +105,7 @@
1.14 return;
1.15 } else {
1.16 list.Add(new SensorNotifyIcon(this, sensor, balloonTip));
1.17 - Config.Set(sensor.Identifier + "/tray", true);
1.18 + Config.Set(new Identifier(sensor.Identifier, "tray").ToString(), true);
1.19 }
1.20 }
1.21
1.22 @@ -114,8 +115,10 @@
1.23
1.24 private void Remove(ISensor sensor, bool deleteConfig) {
1.25 if (deleteConfig) {
1.26 - Config.Remove(sensor.Identifier + "/tray");
1.27 - Config.Remove(sensor.Identifier + "/traycolor");
1.28 + Config.Remove(
1.29 + new Identifier(sensor.Identifier, "tray").ToString());
1.30 + Config.Remove(
1.31 + new Identifier(sensor.Identifier, "traycolor").ToString());
1.32 }
1.33 SensorNotifyIcon instance = null;
1.34 foreach (SensorNotifyIcon icon in list)