the selected group is only relevant to display the trash context bar!

This commit is contained in:
michael starke
2017-04-24 11:44:07 +02:00
parent f5c2aa9fed
commit 3f86982339

View File

@@ -515,13 +515,15 @@ 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 {
[self _hideContextBar];
}
}
}
}