Browse Source

Merge pull request #6387

Jimi Huotari (2):
      fix(build): don't connect UpdateCheck when -DUPDATE_CHECK=OFF
      fix(UI): hide update related elements when -DUPDATE_CHECK=OFF
reviewable/pr6175/r3
Anthony Bilinski 5 years ago
parent
commit
8462207a58
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 5
      src/widget/form/settings/aboutform.cpp

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

@ -62,8 +62,13 @@ AboutForm::AboutForm(UpdateCheck* updateCheck) @@ -62,8 +62,13 @@ 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);
#endif
// block all child signals during initialization
const RecursiveSignalBlocker signalBlocker(this);

Loading…
Cancel
Save