diff --git a/SparkleShare/Mac/SparkleBubbles.cs b/SparkleShare/Mac/SparkleBubbles.cs index 97a2c1a9..057d33c5 100755 --- a/SparkleShare/Mac/SparkleBubbles.cs +++ b/SparkleShare/Mac/SparkleBubbles.cs @@ -33,14 +33,6 @@ namespace SparkleShare { { Controller.ShowBubbleEvent += delegate (string title, string subtext, string image_path) { InvokeOnMainThread (delegate { - if (NSApplication.SharedApplication.DockTile.BadgeLabel == null) { - NSApplication.SharedApplication.DockTile.BadgeLabel = "1"; - - } else { - int events = int.Parse (NSApplication.SharedApplication.DockTile.BadgeLabel); - NSApplication.SharedApplication.DockTile.BadgeLabel = (events + 1).ToString (); - } - if (image_path != null) { NSData image_data = NSData.FromFile (image_path); GrowlApplicationBridge.Notify (title, subtext, "Event", image_data, 0, false, new NSString ("")); @@ -59,7 +51,6 @@ namespace SparkleShare { [Export("growlNotificationWasClicked")] public override void GrowlNotificationWasClicked (NSObject o) { - NSApplication.SharedApplication.DockTile.BadgeLabel = null; Program.UI.Bubbles.Controller.BubbleClicked (); } diff --git a/SparkleShare/Mac/SparkleStatusIcon.cs b/SparkleShare/Mac/SparkleStatusIcon.cs index 94c6f6d0..0ec09259 100755 --- a/SparkleShare/Mac/SparkleStatusIcon.cs +++ b/SparkleShare/Mac/SparkleStatusIcon.cs @@ -377,13 +377,5 @@ namespace SparkleShare { public override void MenuWillHighlightItem (NSMenu menu, NSMenuItem item) { } - - - public override void MenuWillOpen (NSMenu menu) - { - InvokeOnMainThread (() => { - NSApplication.SharedApplication.DockTile.BadgeLabel = null; - }); - } } } diff --git a/SparkleShare/Mac/SparkleUI.cs b/SparkleShare/Mac/SparkleUI.cs index 35a5f5de..8483b229 100755 --- a/SparkleShare/Mac/SparkleUI.cs +++ b/SparkleShare/Mac/SparkleUI.cs @@ -103,16 +103,7 @@ namespace SparkleShare { public partial class AppDelegate : NSApplicationDelegate { - - public override void WillBecomeActive (NSNotification notification) - { - if (NSApplication.SharedApplication.DockTile.BadgeLabel != null) { - Program.Controller.ShowEventLogWindow (); - NSApplication.SharedApplication.DockTile.BadgeLabel = null; - } - } - - + public override void WillTerminate (NSNotification notification) { Program.Controller.Quit ();