mirror of
https://github.com/transmission/transmission
synced 2025-02-06 06:24:31 +00:00
stop timers before clearing the dock icon on quit
This commit is contained in:
parent
69e1e025b2
commit
15c7cebe8b
2 changed files with 4 additions and 3 deletions
|
@ -37,6 +37,7 @@
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
#warning make singleton?
|
||||||
@implementation Badger
|
@implementation Badger
|
||||||
|
|
||||||
- (id) initWithLib: (tr_handle *) lib
|
- (id) initWithLib: (tr_handle *) lib
|
||||||
|
|
|
@ -537,8 +537,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
|
|
||||||
- (void) applicationWillTerminate: (NSNotification *) notification
|
- (void) applicationWillTerminate: (NSNotification *) notification
|
||||||
{
|
{
|
||||||
[fBadger setQuitting];
|
|
||||||
|
|
||||||
//stop timers and notification checking
|
//stop timers and notification checking
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||||
|
|
||||||
|
@ -551,6 +549,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
[fAutoImportTimer release];
|
[fAutoImportTimer release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[fBadger setQuitting];
|
||||||
|
|
||||||
//remove all torrent downloads
|
//remove all torrent downloads
|
||||||
if (fPendingTorrentDownloads)
|
if (fPendingTorrentDownloads)
|
||||||
{
|
{
|
||||||
|
@ -1879,9 +1879,9 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
//check text field
|
//check text field
|
||||||
if (filterText)
|
if (filterText)
|
||||||
{
|
{
|
||||||
BOOL removeTextField = YES;
|
|
||||||
if (filterTracker)
|
if (filterTracker)
|
||||||
{
|
{
|
||||||
|
BOOL removeTextField = YES;
|
||||||
NSEnumerator * trackerEnumerator = [[torrent allTrackers] objectEnumerator], * subTrackerEnumerator;
|
NSEnumerator * trackerEnumerator = [[torrent allTrackers] objectEnumerator], * subTrackerEnumerator;
|
||||||
NSArray * subTrackers;
|
NSArray * subTrackers;
|
||||||
NSString * tracker;
|
NSString * tracker;
|
||||||
|
|
Loading…
Reference in a new issue