mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Share dialog: Adjust layout #4119
This commit is contained in:
parent
f96d94f143
commit
bcfdcec3ee
@ -71,9 +71,17 @@ ShareDialog::ShareDialog(AccountPtr account, const QString &sharePath, const QSt
|
||||
|
||||
ocDir.replace(QRegExp("^/*"), "");
|
||||
ocDir.replace(QRegExp("/*$"), "");
|
||||
|
||||
// Laying this out is complex because sharePath
|
||||
// may be in use or not.
|
||||
_ui->gridLayout->removeWidget(_ui->label_sharePath);
|
||||
_ui->gridLayout->removeWidget(_ui->label_name);
|
||||
if( ocDir.isEmpty() ) {
|
||||
_ui->gridLayout->addWidget(_ui->label_name, 0, 1, 2, 1);
|
||||
_ui->label_sharePath->setText(QString());
|
||||
} else {
|
||||
_ui->gridLayout->addWidget(_ui->label_name, 0, 1, 1, 1);
|
||||
_ui->gridLayout->addWidget(_ui->label_sharePath, 1, 1, 1, 1);
|
||||
_ui->label_sharePath->setText(tr("Folder: %2").arg(ocDir));
|
||||
}
|
||||
|
||||
|
||||
@ -24,12 +24,6 @@
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>share label</string>
|
||||
</property>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user