Added merge action to file menu

This commit is contained in:
michael starke
2017-09-02 10:00:10 +02:00
parent f8b86a386a
commit 76383d6d9d
2 changed files with 7 additions and 0 deletions

View File

@@ -143,6 +143,12 @@
<menuItem isSeparatorItem="YES" id="79">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Merge…" id="zvE-0h-UxI">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="mergeWithOther:" target="-1" id="OyM-CZ-TDD"/>
</connections>
</menuItem>
<menuItem title="Import XML…" id="rW0-r1-QYL">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>

View File

@@ -301,6 +301,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
openPanel.allowsMultipleSelection = NO;
openPanel.canChooseDirectories = NO;
openPanel.canChooseFiles = YES;
openPanel.message = NSLocalizedString(@"SELECT_FILE_TO_MERGE", @"Message for the dialog to open a file for merge");
//openPanel.allowedFileTypes = @[(id)kUTTypeXML];
[openPanel beginSheetModalForWindow:self.window completionHandler:^(NSInteger result) {
if(result == NSFileHandlingPanelOKButton) {