[ui] remove badge from dock icon when application regains focus

This commit is contained in:
Hylke Bons 2011-02-08 02:55:13 +00:00
parent 535ac732c9
commit c58297dca1

View file

@ -28,7 +28,15 @@ using MonoMac.WebKit;
namespace SparkleShare {
public partial class AppDelegate : NSApplicationDelegate {
// Workaround to be able to work with SparkleUI as the main class
public override void WillBecomeActive (NSNotification notification)
{
SparkleUI.NewEvents = 0;
NSApplication.SharedApplication.DockTile.BadgeLabel = null;
}
}
@ -42,7 +50,7 @@ namespace SparkleShare {
public SparkleUI ()
{
NSApplication.Init ();
SetSparkleIcon ();