1.1 --- a/GUI/SensorGadget.cs Tue Sep 07 17:52:43 2010 +0000
1.2 +++ b/GUI/SensorGadget.cs Tue Sep 07 18:32:37 2010 +0000
1.3 @@ -100,13 +100,12 @@
1.4 for (int i = 0; i < 5; i++) {
1.5 MenuItem item = new MenuItem((20 * (i + 1)).ToString() + " %");
1.6 byte o = (byte)(51 * (i + 1));
1.7 - item.Tag = o;
1.8 item.Checked = Opacity == o;
1.9 item.Click += delegate(object sender, EventArgs e) {
1.10 - Opacity = (byte)item.Tag;
1.11 + Opacity = o;
1.12 settings.SetValue("sensorGadget.Opacity", Opacity);
1.13 foreach (MenuItem mi in opacityMenu.MenuItems)
1.14 - mi.Checked = (byte)mi.Tag == Opacity;
1.15 + mi.Checked = mi == item;
1.16 };
1.17 opacityMenu.MenuItems.Add(item);
1.18 }