mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(UI): hide update related elements when -DUPDATE_CHECK=OFF
This commit is contained in:
parent
50063f76ab
commit
db8af0561d
|
@ -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…
Reference in New Issue
Block a user