mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
#4922 On Lion, use window restoration on the preferences window
This commit is contained in:
@@ -158,6 +158,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
@implementation Controller
|
||||
|
||||
#warning remove ivars in header when 64-bit only (or it compiles in 32-bit mode)
|
||||
@synthesize prefsController = fPrefsController;
|
||||
@synthesize messageWindowController = fMessageController;
|
||||
|
||||
+ (void) initialize
|
||||
@@ -2558,7 +2559,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
|
||||
NSPopover * popover = [[NSPopoverLion alloc] init];
|
||||
[popover setBehavior: NSPopoverBehaviorTransient];
|
||||
GlobalOptionsPopoverViewController * viewController = [[GlobalOptionsPopoverViewController alloc] initWithHandle: [PrefsController handle]];
|
||||
GlobalOptionsPopoverViewController * viewController = [[GlobalOptionsPopoverViewController alloc] initWithHandle: fLib];
|
||||
[popover setContentViewController: viewController];
|
||||
[popover setDelegate: self];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user