mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 07:02:39 +00:00
@@ -214,8 +214,8 @@ NSString *const MPDidChangeStoredKeyFilesSettings = @"com.hicknhack.macpass.MPDi
|
||||
- (void)lockAllDocuments {
|
||||
for(NSDocument *document in ((NSDocumentController *)[NSDocumentController sharedDocumentController]).documents) {
|
||||
for(id windowController in document.windowControllers) {
|
||||
if([windowController respondsToSelector:@selector(lock)]) {
|
||||
[windowController lock];
|
||||
if([windowController respondsToSelector:@selector(lock:)]) {
|
||||
[windowController lock:self];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user