1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-10 06:02:57 +00:00

Close all windows when quitting at the same time so that the main window isn't visible while the inspector is before the app finishes quitting.

This commit is contained in:
Mitchell Livingston 2006-07-03 02:10:59 +00:00
parent c106ceb023
commit 830e2fa63e

View file

@ -310,6 +310,8 @@ static void sleepCallBack(void * controller, io_service_t y,
//remember window states
[fDefaults setBool: [[fInfoController window] isVisible] forKey: @"InfoVisible"];
[fInfoController close];
[fPrefsController close];
[fWindow close];
[self showStatusBar: NO animate: NO];
@ -742,7 +744,7 @@ static void sleepCallBack(void * controller, io_service_t y,
- (void) showInfo: (id) sender
{
if ([[fInfoController window] isVisible])
[[fInfoController window] performClose: nil];
[fInfoController close];
else
{
[fInfoController updateInfoStats];