mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-20 20:19:27 +00:00
Removed unneeded parameters in import API
This commit is contained in:
@@ -297,8 +297,10 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
|
||||
NSOpenPanel *openPanel = NSOpenPanel.openPanel;
|
||||
[importPlugin prepareOpenPanel:openPanel];
|
||||
[openPanel beginSheetModalForWindow:sheetWindow completionHandler:^(NSModalResponse result) {
|
||||
KPKTree *importedTree = [importPlugin treeForRunningOpenPanel:openPanel withResponse:result];
|
||||
[self.document importTree:importedTree];
|
||||
if(result == NSModalResponseOK) {
|
||||
KPKTree *importedTree = [importPlugin treeForRunningOpenPanel:openPanel];
|
||||
[self.document importTree:importedTree];
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
@@ -139,10 +139,9 @@ FOUNDATION_EXPORT NSString *const MPPluginDescriptionInfoDictionaryKey;
|
||||
For example, if a CVS import might need user input on how to handle the parsed files this is the place to show it.
|
||||
|
||||
@param panel The open panel used for selecting what file(s) to import
|
||||
@param response The response for of the user for running the panel
|
||||
@return The KPKTree constructed from the selected input file(s)
|
||||
*/
|
||||
- (KPKTree *)treeForRunningOpenPanel:(NSOpenPanel *)panel withResponse:(NSModalResponse)response;
|
||||
- (KPKTree *)treeForRunningOpenPanel:(NSOpenPanel *)panel;
|
||||
@end
|
||||
|
||||
#pragma mark Deprecated
|
||||
|
||||
Reference in New Issue
Block a user