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