From 765534f1027539f7e68dc29ee82d08691d298bdf Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 13 Oct 2020 08:36:07 +0200 Subject: [PATCH] imageinfo: outsource support info init into own member --- src/gui/imageinfo.cpp | 6 ++++++ src/gui/imageinfo.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index ff42e4bff..1c59eae87 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -389,6 +389,12 @@ void CImageInfo::InitInfoData() //internal api versions initAPIVersions(); + //support infos + initSupportInfo(); +} + +void CImageInfo::initSupportInfo() +{ //www v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_HOMEPAGE), config.getString("homepage", PACKAGE_URL)}); //doc diff --git a/src/gui/imageinfo.h b/src/gui/imageinfo.h index 5aaf304cd..491db4082 100644 --- a/src/gui/imageinfo.h +++ b/src/gui/imageinfo.h @@ -59,6 +59,7 @@ class CImageInfo : public CMenuTarget void InitInfos(); void InitBuildInfos(); void InitInfoText(const std::string& text); + void initSupportInfo(); void initAPIVersions(); std::string getLicenseText(); std::string getPolicyText();