Commit 9c35b9ed authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Add "Details" tab only when metadata was fetched

Avoid showing a meaningless tab on remote and other locations
where Baloo wouldn't fetch any metadata.
parent 8bea1e05
Pipeline #128049 passed with stage
in 49 seconds
......@@ -47,7 +47,9 @@ BalooFilePropertiesPlugin::BalooFilePropertiesPlugin(QObject *parent, const QLis
metaDataArea->setWidgetResizable(true);
metaDataArea->setFrameShape(QFrame::NoFrame);
properties->addPage(metaDataArea, i18nc("Tab page with file meta data", "&Details"));
connect(metaDataWidget, &Baloo::FileMetaDataWidget::metaDataRequestFinished, this, [this, metaDataArea, metaDataWidget] {
properties->addPage(metaDataArea, i18nc("Tab page with file meta data", "&Details"));
});
}
BalooFilePropertiesPlugin::~BalooFilePropertiesPlugin() = default;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment