mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
#4920 On Lion, use window restoration on the message log and stats window
This commit is contained in:
@@ -157,6 +157,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
|
||||
@implementation Controller
|
||||
|
||||
@synthesize messageWindowController = fMessageController;
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
//make sure another Transmission.app isn't running already
|
||||
@@ -732,6 +734,11 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
tr_sessionClose(fLib);
|
||||
}
|
||||
|
||||
- (tr_session *) sessionHandle
|
||||
{
|
||||
return fLib;
|
||||
}
|
||||
|
||||
- (void) handleOpenContentsEvent: (NSAppleEventDescriptor *) event replyEvent: (NSAppleEventDescriptor *) replyEvent
|
||||
{
|
||||
NSString * urlString = nil;
|
||||
@@ -1744,16 +1751,22 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
[fInfoController setPreviousTab];
|
||||
}
|
||||
|
||||
- (void) showMessageWindow: (id) sender
|
||||
- (MessageWindowController *) messageWindowController
|
||||
{
|
||||
if (!fMessageController)
|
||||
fMessageController = [[MessageWindowController alloc] init];
|
||||
[fMessageController showWindow: nil];
|
||||
|
||||
return fMessageController;
|
||||
}
|
||||
|
||||
- (void) showMessageWindow: (id) sender
|
||||
{
|
||||
[[self messageWindowController] showWindow: nil];
|
||||
}
|
||||
|
||||
- (void) showStatsWindow: (id) sender
|
||||
{
|
||||
[[StatsWindowController statsWindow: fLib] showWindow: nil];
|
||||
[[StatsWindowController statsWindow] showWindow: nil];
|
||||
}
|
||||
|
||||
- (void) updateUI
|
||||
|
||||
Reference in New Issue
Block a user