Browse Source

fix(UI): hide update related elements when -DUPDATE_CHECK=OFF

reviewable/pr6387/r2
Jimi Huotari 4 years ago
parent
commit
db8af0561d
  1. 3
      src/widget/form/settings/aboutform.cpp

3
src/widget/form/settings/aboutform.cpp

@ -62,6 +62,9 @@ AboutForm::AboutForm(UpdateCheck* updateCheck) @@ -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);

Loading…
Cancel
Save