mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Share dialog: Remove unintended spinner when password required
This commit is contained in:
parent
2c6546f46f
commit
7f44e83cc7
1 changed files with 1 additions and 3 deletions
|
@ -358,14 +358,11 @@ void ShareLinkWidget::slotCheckBoxShareLinkClicked()
|
|||
{
|
||||
qDebug() << Q_FUNC_INFO <<( _ui->checkBox_shareLink->checkState() == Qt::Checked);
|
||||
if (_ui->checkBox_shareLink->checkState() == Qt::Checked) {
|
||||
_pi_link->startAnimation();
|
||||
|
||||
/*
|
||||
* Check the capabilities if the server requires a password for a share
|
||||
* Ask for it directly
|
||||
*/
|
||||
if (_account->capabilities().sharePublicLinkEnforcePassword()) {
|
||||
_pi_link->stopAnimation();
|
||||
_ui->checkBox_password->setChecked(true);
|
||||
_ui->checkBox_password->setEnabled(false);
|
||||
_ui->checkBox_password->setText(tr("Public shå requires a password"));
|
||||
|
@ -379,6 +376,7 @@ void ShareLinkWidget::slotCheckBoxShareLinkClicked()
|
|||
return;
|
||||
}
|
||||
|
||||
_pi_link->startAnimation();
|
||||
_ui->checkBox_shareLink->setEnabled(false);
|
||||
_manager->createLinkShare(_sharePath);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue