forked from qt-creator/qt-creator
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:
@@ -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)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user