mirror of
https://github.com/transmission/transmission
synced 2025-03-09 21:54:09 +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:
parent
c106ceb023
commit
830e2fa63e
1 changed files with 3 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue