linux statusicon: sync with Windows menu. See #640
This commit is contained in:
parent
e848c5a129
commit
70710a9018
|
@ -263,7 +263,6 @@ namespace SparkleShare {
|
|||
};
|
||||
|
||||
this.menu.Add (sync_item);
|
||||
this.menu.Add (new SeparatorMenuItem ());
|
||||
|
||||
MenuItem recent_events_item = new MenuItem (_("View Recent Changes…"));
|
||||
|
||||
|
@ -274,14 +273,12 @@ namespace SparkleShare {
|
|||
};
|
||||
|
||||
this.menu.Add (recent_events_item);
|
||||
this.menu.Add (new SeparatorMenuItem ());
|
||||
|
||||
MenuItem notify_item;
|
||||
|
||||
if (Program.Controller.NotificationsEnabled)
|
||||
notify_item = new MenuItem (_("Turn Notifications Off"));
|
||||
else
|
||||
notify_item = new MenuItem (_("Turn Notifications On"));
|
||||
|
||||
CheckMenuItem notify_item = new CheckMenuItem (_("Notifications")) {
|
||||
Active = Program.Controller.NotificationsEnabled
|
||||
};
|
||||
|
||||
notify_item.Activated += delegate {
|
||||
Program.Controller.ToggleNotifications ();
|
||||
CreateMenu ();
|
||||
|
|
|
@ -216,7 +216,7 @@ namespace SparkleShare {
|
|||
};
|
||||
|
||||
SparkleMenuItem notify_item = new SparkleMenuItem () {
|
||||
Header = "Notifications",
|
||||
Header = "Notifications",
|
||||
IsCheckable = true,
|
||||
IsChecked = Program.Controller.NotificationsEnabled
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue