mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 04:42:29 +00:00
the selected group is only relevant to display the trash context bar!
This commit is contained in:
@@ -515,8 +515,9 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
|
||||
case MPDisplayModeHistory:
|
||||
[self _showContextBar];
|
||||
break;
|
||||
case MPDisplayModeEntries:
|
||||
if([[self currentTargetEntries].firstObject isTrashed]) {
|
||||
case MPDisplayModeEntries: {
|
||||
NSArray<KPKGroup *> *groups = [self.windowController.document selectedGroups];
|
||||
if(groups.count == 1 && groups.firstObject.isTrash) {
|
||||
[self _showContextBar];
|
||||
}
|
||||
else {
|
||||
@@ -524,6 +525,7 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)_showContextBar {
|
||||
if(_isDisplayingContextBar) {
|
||||
|
||||
Reference in New Issue
Block a user