mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 13:29:46 +00:00
more appropriate category name
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
NSString *const MPDocumentShowEntryHistoryNotification = @"MPDocumentShowEntryHistoryNotification";
|
||||
NSString *const MPDocumentHideEntryHistoryNotification = @"MPDocumentHideEntryHistoryNotification";
|
||||
|
||||
@implementation MPDocument (HistoryBrowsing)
|
||||
@implementation MPDocument (History)
|
||||
|
||||
- (void)showEntryHistory:(id)sender {
|
||||
id<MPTargetNodeResolving> resolver = [NSApp targetForAction:@selector(currentTargetEntries)];
|
||||
@@ -32,5 +32,9 @@ NSString *const MPDocumentHideEntryHistoryNotification = @"MPDocumentHideEntryH
|
||||
object:self];
|
||||
}
|
||||
|
||||
- (void)restoreEntry:(KPKEntry *)entry toEntry:(KPKEntry *)historyEntry {
|
||||
[entry revertToEntry:historyEntry];
|
||||
[self.undoManager setActionName:NSLocalizedString(@"RESTORE_HISTORY_ENTRY", "Action to restore and Entry to a previous state of it's history")];
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -229,7 +229,7 @@ FOUNDATION_EXPORT NSString *const MPDocumentGroupKey;
|
||||
FOUNDATION_EXPORT NSString *const MPDocumentShowEntryHistoryNotification;
|
||||
FOUNDATION_EXPORT NSString *const MPDocumentHideEntryHistoryNotification;
|
||||
|
||||
@interface MPDocument (HistoryBrowsing)
|
||||
@interface MPDocument (History)
|
||||
|
||||
- (IBAction)showEntryHistory:(id)sender;
|
||||
- (IBAction)hideEntryHistory:(id)sender;
|
||||
|
||||
Reference in New Issue
Block a user