Gui: Fix about image path

Merge of a4d4a8e7d6 accidentally didn't drop change to DlgAbout path.
Nothing sets AboutImageDev congfig key, so partially revert said commit.

Fixes: a4d4a8e7d6 ("Gui: Add about image for dev version")
This commit is contained in:
Ladislav Michl
2025-08-06 09:26:10 +02:00
committed by Chris Hennes
parent d5bcf68e43
commit f1032b47d4

View File

@@ -164,11 +164,7 @@ QPixmap AboutDialog::aboutImage() const
about_image.load(fi.filePath(), "PNG");
}
// Use dev or generic version of image depending on current build version.
const auto& suffix = App::Application::Config()["BuildVersionSuffix"];
const auto about_path_key = (suffix == "dev") ? "AboutImageDev" : "AboutImage";
const auto& about_path = App::Application::Config()[about_path_key];
const std::string about_path = App::Application::Config()["AboutImage"];
if (!about_path.empty() && about_image.isNull()) {
QString path = QString::fromStdString(about_path);
if (QDir(path).isRelative()) {