зеркало из https://github.com/mozilla/pjs.git
Make Mac OS X updater UI actually show up, and center it. The progress bar doesn't update still, but we're closer.l
This commit is contained in:
Родитель
b5d1595686
Коммит
9edc942571
|
@ -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:)
|
||||
|
|
Загрузка…
Ссылка в новой задаче