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: 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];
} }
}
} }
} }