mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user