windows statusicon: close menu on checkbox click. Fixes #889

This commit is contained in:
Hylke Bons 2012-08-10 19:38:38 +01:00
parent ae3495d388
commit a5215163ba

View file

@ -150,6 +150,12 @@ namespace SparkleShare {
notify_item.Icon = notify_check_box;
notify_check_box.Click += delegate {
this.context_menu.IsOpen = false;
Program.Controller.ToggleNotifications ();
notify_check_box.IsChecked = Program.Controller.NotificationsEnabled;
};
notify_item.Click += delegate {
Program.Controller.ToggleNotifications ();
notify_check_box.IsChecked = Program.Controller.NotificationsEnabled;