Ver Fonte

UI: Use theme path prefix in source tree

derrod há 2 anos atrás
pai
commit
a2db8876fc
1 ficheiros alterados com 1 adições e 4 exclusões
  1. 1 4
      UI/source-tree.cpp

+ 1 - 4
UI/source-tree.cpp

@@ -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);