linux bubbles: Clean up

This commit is contained in:
Hylke Bons 2015-08-08 13:47:34 +01:00
parent d105a1d105
commit ed07fc6254

View file

@ -30,7 +30,12 @@ namespace SparkleShare {
public SparkleBubbles () public SparkleBubbles ()
{ {
Controller.ShowBubbleEvent += delegate (string title, string subtext, string image_path) { Controller.ShowBubbleEvent += ShowBubbleEvent;
}
private void ShowBubbleEvent (string title, string subtext, string image_path)
{
if (!Program.Controller.NotificationsEnabled) if (!Program.Controller.NotificationsEnabled)
return; return;
@ -59,7 +64,7 @@ namespace SparkleShare {
SparkleLogger.LogInfo ("Notification", "Error showing notification: ", e); SparkleLogger.LogInfo ("Notification", "Error showing notification: ", e);
} }
}); });
};
} }
} }
} }