зеркало из https://github.com/mozilla/pjs.git
Fix bug 169801: allow downloads to udpate even when the mouse is tracking a control by adding the timer to the event loop tracking runloop mode.
This commit is contained in:
Родитель
a7ce0da213
Коммит
ceac06b70d
|
@ -519,6 +519,8 @@ static id gSharedProgressController = nil;
|
||||||
selector:@selector(setDownloadProgress:)
|
selector:@selector(setDownloadProgress:)
|
||||||
userInfo:nil
|
userInfo:nil
|
||||||
repeats:YES] retain];
|
repeats:YES] retain];
|
||||||
|
// make sure it fires even when the mouse is down
|
||||||
|
[[NSRunLoop currentRunLoop] addTimer:mDownloadTimer forMode:NSEventTrackingRunLoopMode];
|
||||||
}
|
}
|
||||||
|
|
||||||
-(NSApplicationTerminateReply)allowTerminate
|
-(NSApplicationTerminateReply)allowTerminate
|
||||||
|
|
Загрузка…
Ссылка в новой задаче