mirror of
https://github.com/MacPass/MacPass.git
synced 2026-01-31 14:18:16 +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;
|
NSOpenPanel *openPanel = NSOpenPanel.openPanel;
|
||||||
[importPlugin prepareOpenPanel:openPanel];
|
[importPlugin prepareOpenPanel:openPanel];
|
||||||
[openPanel beginSheetModalForWindow:sheetWindow completionHandler:^(NSModalResponse result) {
|
[openPanel beginSheetModalForWindow:sheetWindow completionHandler:^(NSModalResponse result) {
|
||||||
KPKTree *importedTree = [importPlugin treeForRunningOpenPanel:openPanel withResponse:result];
|
if(result == NSModalResponseOK) {
|
||||||
|
KPKTree *importedTree = [importPlugin treeForRunningOpenPanel:openPanel];
|
||||||
[self.document importTree:importedTree];
|
[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.
|
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 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)
|
@return The KPKTree constructed from the selected input file(s)
|
||||||
*/
|
*/
|
||||||
- (KPKTree *)treeForRunningOpenPanel:(NSOpenPanel *)panel withResponse:(NSModalResponse)response;
|
- (KPKTree *)treeForRunningOpenPanel:(NSOpenPanel *)panel;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#pragma mark Deprecated
|
#pragma mark Deprecated
|
||||||
|
|||||||
Reference in New Issue
Block a user