From a2db8876fc985c625867865c199f9738bee23115 Mon Sep 17 00:00:00 2001 From: derrod Date: Fri, 22 Sep 2023 12:58:40 +0200 Subject: [PATCH] UI: Use theme path prefix in source tree --- UI/source-tree.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/UI/source-tree.cpp b/UI/source-tree.cpp index 3cfdcd5ed..906535a30 100644 --- a/UI/source-tree.cpp +++ b/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);