Skip to content

Commit 3d92c2c

Browse files
committed
ShareDialog: Hide the detailed permissions if there is only one owncloud#5655
1 parent 489497a commit 3d92c2c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/gui/shareusergroupwidget.cpp‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,11 @@ ShareWidget::ShareWidget(QSharedPointer<Share> share,
324324
QIcon icon(QLatin1String(":/client/resources/more.png"));
325325
_ui->permissionToolButton->setIcon(icon);
326326

327+
// If there's only a single entry in the detailed permission menu, hide it
328+
if (menu->actions().size() == 1) {
329+
_ui->permissionToolButton->hide();
330+
}
331+
327332
// Set the permissions checkboxes
328333
displayPermissions();
329334

0 commit comments

Comments
 (0)