mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Closing the controller removes it from NSApp
This commit is contained in:
@@ -49,6 +49,10 @@
|
||||
[[webView mainFrame] loadRequest:request];
|
||||
}
|
||||
|
||||
- (void)close {
|
||||
[(AtomApp *)NSApp removeController:self];
|
||||
}
|
||||
|
||||
- (NSString *)projectPath {
|
||||
return PROJECT_DIR;
|
||||
}
|
||||
@@ -58,10 +62,4 @@
|
||||
return defaultMenuItems;
|
||||
}
|
||||
|
||||
// WindowDelegate
|
||||
- (BOOL)windowShouldClose:(id)sender {
|
||||
[(AtomApp *)NSApp removeController:self];
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user