From 36347e4da9e22dbbad7de9eba4023ebb5b01fc38 Mon Sep 17 00:00:00 2001 From: "joshmoz%gmail.com" Date: Sat, 18 Jun 2005 05:40:08 +0000 Subject: [PATCH] Make Mac OS X updater UI actually show up, and center it. The progress bar doesn't update still, but we're closer.l --- toolkit/mozapps/update/src/updater/progressui_osx.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/toolkit/mozapps/update/src/updater/progressui_osx.mm b/toolkit/mozapps/update/src/updater/progressui_osx.mm index 5ec993428e82..1bf8ac39bdae 100644 --- a/toolkit/mozapps/update/src/updater/progressui_osx.mm +++ b/toolkit/mozapps/update/src/updater/progressui_osx.mm @@ -60,6 +60,10 @@ static const char *sProgramPath; @implementation UpdaterUI +-(void)awakeFromNib { + [[progressBar window] center]; +} + // called when the timer goes off -(void)updateProgressUI:(NSTimer *)aTimer { @@ -96,7 +100,7 @@ ShowProgressUI() if (sQuit || sProgressVal > 50.0f) return 0; - [[NSApplication sharedApplication] run]; + NSApplicationMain(1, *sProgramPath); [[NSTimer scheduledTimerWithTimeInterval:TIMER_INTERVAL target:[[[NSApplication sharedApplication] mainWindow] delegate] selector:@selector(updateProgressUI:)