mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Share dialog: Hide the icon when unused
Previously this used up some space when there was no icon, leading to an oddly indented header.
This commit is contained in:
parent
d3b00532b1
commit
f24cdf5a05
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,7 @@ ShareDialog::ShareDialog(QPointer<AccountState> accountState,
|
|||
return;
|
||||
}
|
||||
|
||||
_ui->label_icon->hide();
|
||||
if (QFileInfo(_localPath).isFile()) {
|
||||
ThumbnailJob *job = new ThumbnailJob(_sharePath, _accountState->account(), this);
|
||||
connect(job, SIGNAL(jobFinished(int, QByteArray)), SLOT(slotThumbnailFetched(int, QByteArray)));
|
||||
|
@ -217,6 +218,7 @@ void ShareDialog::slotThumbnailFetched(const int &statusCode, const QByteArray &
|
|||
p.loadFromData(reply, "PNG");
|
||||
p = p.scaledToHeight(thumbnailSize, Qt::SmoothTransformation);
|
||||
_ui->label_icon->setPixmap(p);
|
||||
_ui->label_icon->show();
|
||||
}
|
||||
|
||||
void ShareDialog::slotAccountStateChanged(int state)
|
||||
|
|
Loading…
Reference in a new issue