Core: Don't offer QDS themes in QtC and vice versa

Change-Id: I62d44e6fbff1d9dbbe27d36172d29d9576e1df62
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2024-10-31 15:19:55 +01:00
parent 0af8ba6710
commit 18a240d85b

View File

@@ -176,9 +176,7 @@ static void addThemesFromPath(const QString &path, QList<ThemeEntry> *themes)
const QStringList themeList = themeDir.entryList();
for (const QString &fileName : std::as_const(themeList)) {
QString id = QFileInfo(fileName).completeBaseName();
bool addTheme = true;
if (Core::ICore::isQtDesignStudio())
addTheme = id.startsWith("design");
const bool addTheme = Core::ICore::isQtDesignStudio() == id.startsWith("design");
if (addTheme)
themes->append(ThemeEntry(Id::fromString(id), themeDir.absoluteFilePath(fileName)));
}