mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Merge pull request #2551 from nextcloud/fix_share_dialog_animation_for_enforced_password_policy
Fix share dialog animation for enforced password policy
This commit is contained in:
commit
0927b9bc90
3 changed files with 6 additions and 3 deletions
|
@ -184,6 +184,10 @@ void ShareDialog::initLinkShareWidget(){
|
|||
_emptyShareLinkWidget = new ShareLinkWidget(_accountState->account(), _sharePath, _localPath, _maxSharingPermissions, this);
|
||||
_linkWidgetList.append(_emptyShareLinkWidget);
|
||||
|
||||
if (_manager) {
|
||||
connect(_manager, &ShareManager::linkShareRequiresPassword, _emptyShareLinkWidget, &ShareLinkWidget::slotCreateShareRequiresPassword);
|
||||
}
|
||||
|
||||
connect(_emptyShareLinkWidget, &ShareLinkWidget::resizeRequested, this, &ShareDialog::slotAdjustScrollWidgetSize);
|
||||
// connect(this, &ShareDialog::toggleAnimation, _emptyShareLinkWidget, &ShareLinkWidget::slotToggleAnimation);
|
||||
connect(_emptyShareLinkWidget, &ShareLinkWidget::createLinkShare, this, &ShareDialog::slotCreateLinkShare);
|
||||
|
|
|
@ -401,7 +401,7 @@ void ShareLinkWidget::slotDeleteAnimationFinished()
|
|||
|
||||
void ShareLinkWidget::slotCreateShareRequiresPassword(const QString &message)
|
||||
{
|
||||
slotToggleAnimation(true);
|
||||
slotToggleAnimation(message.isEmpty());
|
||||
|
||||
showPasswordOptions(true);
|
||||
if (!message.isEmpty()) {
|
||||
|
|
|
@ -133,9 +133,8 @@ void Share::deleteShare()
|
|||
|
||||
void Share::slotDeleted()
|
||||
{
|
||||
emit shareDeleted();
|
||||
|
||||
updateFolder(_account, _path);
|
||||
emit shareDeleted();
|
||||
}
|
||||
|
||||
void Share::slotOcsError(int statusCode, const QString &message)
|
||||
|
|
Loading…
Reference in a new issue