зеркало из https://github.com/mozilla/pjs.git
don't allow user to quit out of Mac OS X updater by any means until the patching job is finished
This commit is contained in:
Родитель
5efe2ce621
Коммит
b479b6ac7f
|
@ -60,7 +60,8 @@ static const char *sProgramPath;
|
|||
|
||||
@implementation UpdaterUI
|
||||
|
||||
-(void)awakeFromNib {
|
||||
-(void)awakeFromNib
|
||||
{
|
||||
[[progressBar window] center];
|
||||
[progressBar setIndeterminate:NO];
|
||||
[progressBar setDoubleValue:0.0];
|
||||
|
@ -84,6 +85,11 @@ static const char *sProgramPath;
|
|||
[progressBar setDoubleValue:(double)progress];
|
||||
}
|
||||
|
||||
- (BOOL)applicationShouldTerminate:(NSApplication *)sender
|
||||
{
|
||||
return sQuit;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
int
|
||||
|
|
Загрузка…
Ссылка в новой задаче