QmlDesigner: Refresh 'empty' property based on custom folder state

Fixes: QDS-15331
Change-Id: Ia6fb3867f80b450b33e1711975ec672db6f36908
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Shrief Gabr
2025-05-14 17:28:33 +03:00
parent 12adc73782
commit 9202a1d228

View File

@@ -156,6 +156,8 @@ void ContentLibraryUserModel::addBundleDir(const Utils::FilePath &dirPath)
auto result = jsonFilePath.writeFileContents(QJsonDocument(m_customCatsRootObj).toJson());
QTC_ASSERT_EXPECTED(result,);
}
updateIsEmpty();
}
void ContentLibraryUserModel::addItem(const QString &bundleId, const QString &name,
@@ -289,6 +291,7 @@ void ContentLibraryUserModel::removeBundleDir(int catIdx)
delete texCat;
m_userCategories.removeAt(catIdx);
endRemoveRows();
updateIsEmpty();
}
void ContentLibraryUserModel::removeItemByName(const QString &qmlFileName, const QString &bundleId)