From c26f93d2ff629f44cca397f933ff26b01cb7a0b0 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 26 Oct 2020 21:50:08 +0100 Subject: [PATCH] imageinfo: outsource support info init into own member Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/a82726c86a03b12565b7476f36ed3bdbe953876c Author: Thilo Graf Date: 2020-10-26 (Mon, 26 Oct 2020) --- 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 cf04e842a..ab4b5914d 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();