diff --git a/companion/src/apppreferencesdialog.cpp b/companion/src/apppreferencesdialog.cpp
index 05737fed3..22b2523ad 100644
--- a/companion/src/apppreferencesdialog.cpp
+++ b/companion/src/apppreferencesdialog.cpp
@@ -170,10 +170,17 @@ void AppPreferencesDialog::initSettings()
ui->snapshotPath->setDisabled(true);
ui->snapshotPathButton->setDisabled(true);
}
+
#if !defined(ALLOW_NIGHTLY_BUILDS)
- // TODO should we gray out nightly builds here?
+ // remove nightly version option entirely unless it's the current one (because user might have nightly version also installed)
+ if (g.OpenTxBranch() != AppData::BRANCH_NIGHTLY_UNSTABLE)
+ ui->OpenTxBranch->removeItem(2);
+ // if it's already selected, add a warning message
+ else
+ ui->updatesLayout->addWidget(new QLabel("" % tr("Note: Nightly builds are not available in this version, Release/RC update channel will be used.") % "", this));
#endif
ui->OpenTxBranch->setCurrentIndex(g.OpenTxBranch());
+
ui->autoCheckCompanion->setChecked(g.autoCheckApp());
ui->autoCheckFirmware->setChecked(g.autoCheckFw());
ui->showSplash->setChecked(g.showSplash());
diff --git a/companion/src/apppreferencesdialog.ui b/companion/src/apppreferencesdialog.ui
index 96f42a9b2..dd98f34ae 100644
--- a/companion/src/apppreferencesdialog.ui
+++ b/companion/src/apppreferencesdialog.ui
@@ -767,8 +767,8 @@ Mode 4:
6
-
-
-
-
+
+
-
Automatic check for OpenTX firmware updates
@@ -778,7 +778,7 @@ Mode 4:
- -
+
-
Automatic check for Companion updates
@@ -788,7 +788,7 @@ Mode 4:
- -
+
-