зеркало из https://github.com/mozilla/pjs.git
Turn off threaded animation on the download progress indicators, as it appears to cause a leak. Bug 143303.
This commit is contained in:
Родитель
f6372a1cc1
Коммит
c6ced2ce5a
|
@ -146,7 +146,8 @@ enum {
|
||||||
|
|
||||||
-(id)init
|
-(id)init
|
||||||
{
|
{
|
||||||
if ((self = [super init])) {
|
if ((self = [super init]))
|
||||||
|
{
|
||||||
[NSBundle loadNibNamed:@"ProgressView" owner:self];
|
[NSBundle loadNibNamed:@"ProgressView" owner:self];
|
||||||
[self viewDidLoad];
|
[self viewDidLoad];
|
||||||
}
|
}
|
||||||
|
@ -192,7 +193,7 @@ enum {
|
||||||
{
|
{
|
||||||
[mProgressBar retain]; // make sure it survives being moved between views
|
[mProgressBar retain]; // make sure it survives being moved between views
|
||||||
// this isn't necessarily better. Need to profile.
|
// this isn't necessarily better. Need to profile.
|
||||||
[mProgressBar setUsesThreadedAnimation:YES];
|
[mProgressBar setUsesThreadedAnimation:NO];
|
||||||
// give the views this controller as their controller
|
// give the views this controller as their controller
|
||||||
[mCompletedView setController:self];
|
[mCompletedView setController:self];
|
||||||
[mProgressView setController:self];
|
[mProgressView setController:self];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче