mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-17 12:29:35 +00:00
Keyfile selection window must be modal (#898)
If we don't use the modal view, the user can put the file selection window to background, click 'Choose...' and open additional windows.
This commit is contained in:
committed by
Michael Starke
parent
1c0a76dc74
commit
ae4656c79a
@@ -44,11 +44,10 @@
|
|||||||
if([self.delegate respondsToSelector:@selector(pathControl:willDisplayOpenPanel:)]) {
|
if([self.delegate respondsToSelector:@selector(pathControl:willDisplayOpenPanel:)]) {
|
||||||
[self.delegate pathControl:self willDisplayOpenPanel:panel];
|
[self.delegate pathControl:self willDisplayOpenPanel:panel];
|
||||||
}
|
}
|
||||||
[panel beginWithCompletionHandler:^(NSModalResponse result) {
|
NSModalResponse result = [panel runModal];
|
||||||
if(result == NSModalResponseOK) {
|
if(result == NSModalResponseOK) {
|
||||||
self.URL = panel.URLs.firstObject;
|
self.URL = panel.URLs.firstObject;
|
||||||
}
|
}
|
||||||
}];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)pathControl:(NSPathControl *)pathControl willPopUpMenu:(NSMenu *)menu {
|
- (void)pathControl:(NSPathControl *)pathControl willPopUpMenu:(NSMenu *)menu {
|
||||||
|
|||||||
Reference in New Issue
Block a user