# | Line 26 | Line 26 | |
---|---|---|
26 | - (void) awakeFromNib | |
27 | { | |
28 | [self openVirtualMachinesList:self]; | |
29 | + | [NSApp setDelegate:self]; |
30 | } | |
31 | ||
32 | - (IBAction) openVirtualMachinesList: (id) sender | |
# | Line 33 | Line 34 | |
34 | [[VMListController sharedInstance] showWindow:sender]; | |
35 | } | |
36 | ||
37 | + | - (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) hasVisible |
38 | + | { |
39 | + | if (!hasVisible) |
40 | + | [self openVirtualMachinesList:self]; |
41 | + | return YES; |
42 | + | } |
43 | + | |
44 | @end |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |