make coding style consistent in sparklebubble
This commit is contained in:
parent
b29d5a942f
commit
4877221124
|
@ -29,10 +29,15 @@ namespace SparkleShare {
|
||||||
AttachToStatusIcon (SparkleUI.NotificationIcon);
|
AttachToStatusIcon (SparkleUI.NotificationIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
new public void AddAction (string action, string label, ActionHandler handler) {
|
new public void AddAction (string Action, string Label,
|
||||||
if (System.Array.IndexOf (Notifications.Global.Capabilities, "actions") > -1) {
|
ActionHandler Handler) {
|
||||||
base.AddAction(action, label, handler);
|
|
||||||
}
|
bool CanHaveButtons =
|
||||||
|
(System.Array.IndexOf (Notifications.Global.Capabilities,
|
||||||
|
"actions") > -1);
|
||||||
|
if (CanHaveButtons)
|
||||||
|
base.AddAction(Action, Label, Handler);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue