From bb1ae7c7f13c8b0eb43ca9fbbd8e5629e34bb999 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 11 Feb 2012 19:52:29 +0100 Subject: [PATCH] mac: Properly focus the about dialog --- SparkleShare/Mac/SparkleAbout.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SparkleShare/Mac/SparkleAbout.cs b/SparkleShare/Mac/SparkleAbout.cs index 27d5715b..069ba2e2 100755 --- a/SparkleShare/Mac/SparkleAbout.cs +++ b/SparkleShare/Mac/SparkleAbout.cs @@ -19,12 +19,11 @@ using System; using System.Drawing; using System.IO; -using MonoMac.Foundation; using MonoMac.AppKit; +using MonoMac.Foundation; using MonoMac.ObjCRuntime; using MonoMac.WebKit; - namespace SparkleShare { public class SparkleAbout : NSWindow { @@ -54,9 +53,12 @@ namespace SparkleShare { BackingType = NSBackingStore.Buffered; CreateAbout (); - OrderFrontRegardless (); + + NSApplication.SharedApplication.ActivateIgnoringOtherApps (true); MakeKeyAndOrderFront (this); + OrderFrontRegardless (); + Program.UI.UpdateDockIconVisibility (); Controller.NewVersionEvent += delegate (string new_version) {