[ui] remove badge from dock icon when application regains focus
This commit is contained in:
parent
dbc9888d08
commit
5be0c7a404
|
@ -28,7 +28,15 @@ using MonoMac.WebKit;
|
||||||
namespace SparkleShare {
|
namespace SparkleShare {
|
||||||
|
|
||||||
public partial class AppDelegate : NSApplicationDelegate {
|
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;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue