mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Share UI: Respect enfore-expire #4235
This commit is contained in:
parent
d92c8bec86
commit
1a519ac1fb
1 changed files with 3 additions and 1 deletions
|
@ -251,7 +251,9 @@ void ShareLinkWidget::slotSharesFetched(const QList<QSharedPointer<Share>> &shar
|
|||
_ui->pushButton_setPassword->hide();
|
||||
}
|
||||
|
||||
_ui->checkBox_expire->setEnabled(true);
|
||||
_ui->checkBox_expire->setEnabled(
|
||||
!_account->capabilities().sharePublicLinkEnforceExpireDate());
|
||||
|
||||
_ui->calendar->setMinimumDate(QDate::currentDate().addDays(1));
|
||||
if (_share->getExpireDate().isValid()) {
|
||||
_ui->calendar->setDate(_share->getExpireDate());
|
||||
|
|
Loading…
Reference in a new issue