mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
Close all windows automatically rather than manually.
This commit is contained in:
parent
3369b4f36d
commit
2462c22e70
1 changed files with 4 additions and 6 deletions
|
@ -307,21 +307,19 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
[self updateTorrentHistory];
|
||||
[fTorrents makeObjectsPerformSelector: @selector(stopTransferForQuit)];
|
||||
|
||||
//remember window states
|
||||
//remember window states and close all windows
|
||||
[fDefaults setBool: [[fInfoController window] isVisible] forKey: @"InfoVisible"];
|
||||
[fInfoController close];
|
||||
[fPrefsController close];
|
||||
[fWindow close];
|
||||
[[NSApp windows] makeObjectsPerformSelector: @selector(close)];
|
||||
[self showStatusBar: NO animate: NO];
|
||||
|
||||
//clear badge
|
||||
[fBadger clearBadge];
|
||||
|
||||
//end quickly if updated version will open
|
||||
//end quickly if the app is updating
|
||||
if (fUpdateInProgress)
|
||||
return;
|
||||
|
||||
//wait for running transfers to stop (5 seconds timeout)
|
||||
//wait for running transfers to stop (5 second timeout)
|
||||
NSDate * start = [NSDate date];
|
||||
BOOL timeUp = NO;
|
||||
|
||||
|
|
Loading…
Reference in a new issue