mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Fixes share users/groups widget.
- Existing sharees where not being displayed. Signed-off-by: Camila San <hello@camila.codes>
This commit is contained in:
parent
55b0b46bb6
commit
7aff1e27c0
1 changed files with 4 additions and 1 deletions
|
@ -66,7 +66,7 @@ ShareUserGroupWidget::ShareUserGroupWidget(AccountPtr account,
|
||||||
setObjectName("SharingDialogUG"); // required as group for saveGeometry call
|
setObjectName("SharingDialogUG"); // required as group for saveGeometry call
|
||||||
|
|
||||||
_ui->setupUi(this);
|
_ui->setupUi(this);
|
||||||
_ui->scrollArea->setVisible(false);
|
//_ui->scrollArea->setVisible(false);
|
||||||
|
|
||||||
//Is this a file or folder?
|
//Is this a file or folder?
|
||||||
_isFile = QFileInfo(localPath).isFile();
|
_isFile = QFileInfo(localPath).isFile();
|
||||||
|
@ -243,7 +243,10 @@ void ShareUserGroupWidget::slotSharesFetched(const QList<QSharedPointer<Share>>
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!layout->isEmpty()) {
|
if (!layout->isEmpty()) {
|
||||||
|
_ui->scrollArea->setVisible(true);
|
||||||
layout->addStretch(1);
|
layout->addStretch(1);
|
||||||
|
} else {
|
||||||
|
_ui->scrollArea->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
minimumSize.rwidth() += layout->spacing();
|
minimumSize.rwidth() += layout->spacing();
|
||||||
|
|
Loading…
Reference in a new issue