forked from qt-creator/qt-creator
QmlDesigner: Update isEmpty state upon content library load
Change-Id: Ibb26294efac90e177f5e4f691609a95f6a181475 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -162,6 +162,11 @@ void ContentLibraryMaterialsModel::loadMaterialBundle()
|
||||
emit importerRunningChanged();
|
||||
emit bundleMaterialUnimported(metaInfo);
|
||||
});
|
||||
|
||||
if (m_bundleCategories.isEmpty() != m_isEmpty) {
|
||||
m_isEmpty = m_bundleCategories.isEmpty();
|
||||
emit isEmptyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
bool ContentLibraryMaterialsModel::hasQuick3DImport() const
|
||||
|
@@ -85,6 +85,11 @@ void ContentLibraryTexturesModel::loadTextureBundle(const QString &bundlePath)
|
||||
category->addTexture(tex);
|
||||
m_bundleCategories.append(category);
|
||||
}
|
||||
|
||||
if (m_bundleCategories.isEmpty() != m_isEmpty) {
|
||||
m_isEmpty = m_bundleCategories.isEmpty();
|
||||
emit isEmptyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
bool ContentLibraryTexturesModel::hasQuick3DImport() const
|
||||
|
Reference in New Issue
Block a user