mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-03 16:14:30 +02:00
fix: icon search paths memory leak
Signed-off-by: leia uwu <leia@tutamail.com>
This commit is contained in:
parent
fd9c80db62
commit
3f67ef968b
@ -37,6 +37,7 @@
|
||||
ThemeManager::ThemeManager()
|
||||
{
|
||||
QIcon::setFallbackThemeName(QIcon::themeName());
|
||||
QIcon::setFallbackSearchPaths(QIcon::themeSearchPaths());
|
||||
themeDebugLog() << "Determining System Widget Theme...";
|
||||
const auto& style = QApplication::style();
|
||||
m_defaultStyle = style->objectName();
|
||||
@ -94,9 +95,7 @@ void ThemeManager::initializeIcons()
|
||||
// set icon theme search path!
|
||||
themeDebugLog() << "<> Initializing Icon Themes";
|
||||
|
||||
auto searchPaths = QIcon::themeSearchPaths();
|
||||
searchPaths.append(m_iconThemeFolder.path());
|
||||
QIcon::setThemeSearchPaths(searchPaths);
|
||||
QIcon::setThemeSearchPaths({ m_iconThemeFolder.path(), ":/icons" });
|
||||
|
||||
for (const QString& id : builtinIcons) {
|
||||
IconTheme theme(id, QString(":/icons/%1").arg(id));
|
||||
|
Loading…
x
Reference in New Issue
Block a user