linux bubbles: Clean up
This commit is contained in:
parent
d105a1d105
commit
ed07fc6254
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue