UI: Use theme path prefix in source tree

This commit is contained in:
derrod 2023-09-22 12:58:40 +02:00 committed by Georges Basile Stavracas Neto
parent 1906a14b90
commit a2db8876fc

View File

@ -1664,11 +1664,8 @@ void SourceTree::AddGroup()
void SourceTree::UpdateNoSourcesMessage()
{
std::string darkPath;
GetDataFilePath("themes/Dark/no_sources.svg", darkPath);
QString file = !App()->IsThemeDark() ? ":res/images/no_sources.svg"
: darkPath.c_str();
: "theme:Dark/no_sources.svg";
iconNoSources.load(file);
QTextOption opt(Qt::AlignHCenter);