mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
make Mac OS X update UI work.
This commit is contained in:
parent
12c1b15b09
commit
0dacaaecf8
@ -62,6 +62,11 @@ static const char *sProgramPath;
|
||||
|
||||
-(void)awakeFromNib {
|
||||
[[progressBar window] center];
|
||||
[progressBar setIndeterminate:NO];
|
||||
[progressBar setDoubleValue:0.0];
|
||||
[[NSTimer scheduledTimerWithTimeInterval:TIMER_INTERVAL target:self
|
||||
selector:@selector(updateProgressUI:)
|
||||
userInfo:nil repeats:YES] retain];
|
||||
}
|
||||
|
||||
// called when the timer goes off
|
||||
@ -101,10 +106,6 @@ ShowProgressUI()
|
||||
return 0;
|
||||
|
||||
NSApplicationMain(1, &sProgramPath);
|
||||
|
||||
[[NSTimer scheduledTimerWithTimeInterval:TIMER_INTERVAL target:[[[NSApplication sharedApplication] mainWindow] delegate]
|
||||
selector:@selector(updateProgressUI:)
|
||||
userInfo:nil repeats:YES] retain];
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user