mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-13 08:44:12 +03:00
Closing the controller removes it from NSApp
This commit is contained in:
parent
40472537cc
commit
f31cb275ca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user