fix hardcoded svg path

This commit is contained in:
fn2006
2022-10-29 14:03:44 +01:00
parent 765fb42a7e
commit 0f581efda5
4 changed files with 4 additions and 2 deletions

View File

@@ -1168,8 +1168,7 @@ void Application::setIconTheme(const QString& name)
QIcon Application::getThemedIcon(const QString& name)
{
if(name == "logo") {
// why is this hardcoded lol
return QIcon(":/org.fn2006.PollyMC.svg");
return QIcon(":/" + BuildConfig.LAUNCHER_SVGFILENAME);
}
return QIcon::fromTheme(name);
}