From db8af0561d3128ed5598f9fa61ef381827747cae Mon Sep 17 00:00:00 2001 From: Jimi Huotari Date: Sun, 3 Oct 2021 01:54:06 +0300 Subject: [PATCH] fix(UI): hide update related elements when -DUPDATE_CHECK=OFF --- src/widget/form/settings/aboutform.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widget/form/settings/aboutform.cpp b/src/widget/form/settings/aboutform.cpp index 88da475b0..fd6b3ffca 100644 --- a/src/widget/form/settings/aboutform.cpp +++ b/src/widget/form/settings/aboutform.cpp @@ -62,6 +62,9 @@ AboutForm::AboutForm(UpdateCheck* updateCheck) { bodyUI->setupUi(this); +#if !UPDATE_CHECK_ENABLED + bodyUI->updateStack->setVisible(false); +#endif bodyUI->unstableVersion->setVisible(false); #if UPDATE_CHECK_ENABLED connect(updateCheck, &UpdateCheck::versionIsUnstable, this, &AboutForm::onUnstableVersion);