Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCamila San <hello@camila.codes>2018-08-19 14:06:48 +0300
committerCamila San <hello@camila.codes>2018-08-21 23:48:51 +0300
commit085de2825a72588af14e3d46db16aec6caed88e4 (patch)
tree464989dc7958976caace01566ed720cfa05a830f /src
parentcf3ee4b3a45a5b37e5a95d89e4fa158675101bff (diff)
Enhancement #534: hide tool button when there is no share link.
- Only display button when there is a share link. Signed-off-by: Camila San <hello@camila.codes>
Diffstat (limited to 'src')
-rw-r--r--src/gui/sharelinkwidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp
index ae0d50e54..2e11fb43b 100644
--- a/src/gui/sharelinkwidget.cpp
+++ b/src/gui/sharelinkwidget.cpp
@@ -58,6 +58,7 @@ ShareLinkWidget::ShareLinkWidget(AccountPtr account,
, _unshareLinkAction(nullptr)
{
_ui->setupUi(this);
+ _ui->shareLinkToolButton->hide();
//Is this a file or folder?
QFileInfo fi(localPath);
@@ -265,6 +266,9 @@ void ShareLinkWidget::slotSharesFetched(const QList<QSharedPointer<Share>> &shar
_ui->shareLinkToolButton->setEnabled(true);
_ui->enableShareLink->setEnabled(true);
_ui->enableShareLink->setChecked(true);
+
+ // show sharing options
+ _ui->shareLinkToolButton->show();
}
}
@@ -411,6 +415,7 @@ void ShareLinkWidget::slotDeleteShareFetched()
_linkShare.clear();
_ui->enableShareLink->setChecked(false);
_ui->shareLinkToolButton->setEnabled(false);
+ _ui->shareLinkToolButton->hide();
getShares();
}