More catpack changes :3
This is just embarrasing Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
1a7c5693cc
commit
516ddb22ae
@ -62,7 +62,10 @@ ITheme* ThemeManager::getTheme(QString themeId)
|
|||||||
QString ThemeManager::addIconTheme(IconTheme theme)
|
QString ThemeManager::addIconTheme(IconTheme theme)
|
||||||
{
|
{
|
||||||
QString id = theme.id();
|
QString id = theme.id();
|
||||||
|
if (m_icons.find(id) == m_icons.end())
|
||||||
m_icons.emplace(id, std::move(theme));
|
m_icons.emplace(id, std::move(theme));
|
||||||
|
else
|
||||||
|
themeWarningLog() << "IconTheme(" << id << ") not added to prevent id duplication";
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,7 +132,7 @@ void ThemeManager::initializeWidgets()
|
|||||||
themeWarningLog() << "Couldn't create theme folder";
|
themeWarningLog() << "Couldn't create theme folder";
|
||||||
themeDebugLog() << "Theme Folder Path: " << m_applicationThemeFolder.absolutePath();
|
themeDebugLog() << "Theme Folder Path: " << m_applicationThemeFolder.absolutePath();
|
||||||
|
|
||||||
QDirIterator directoryIterator(m_applicationThemeFolder.path(), QDir::Dirs | QDir::NoDotAndDotDot, QDirIterator::Subdirectories);
|
QDirIterator directoryIterator(m_applicationThemeFolder.path(), QDir::Dirs | QDir::NoDotAndDotDot);
|
||||||
while (directoryIterator.hasNext()) {
|
while (directoryIterator.hasNext()) {
|
||||||
QDir dir(directoryIterator.next());
|
QDir dir(directoryIterator.next());
|
||||||
QFileInfo themeJson(dir.absoluteFilePath("theme.json"));
|
QFileInfo themeJson(dir.absoluteFilePath("theme.json"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user