Skip to content

Commit

Permalink
GeneralSettings: Hide update channel for other themes
Browse files Browse the repository at this point in the history
For #6585
  • Loading branch information
guruz committed Jun 20, 2018
1 parent 4f96647 commit e1a4c3a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/gui/generalsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ GeneralSettings::GeneralSettings(QWidget *parent)

// accountAdded means the wizard was finished and the wizard might change some options.
connect(AccountManager::instance(), &AccountManager::accountAdded, this, &GeneralSettings::loadMiscSettings);

// Only our standard brandings currently support beta channel
Theme *theme = Theme::instance();
if (theme->appName() != QLatin1String("ownCloud") && theme->appName() != QLatin1String("testpilotcloud") ) {
#ifdef Q_OS_MAC
// Because we don't have any statusString from the SparkleUpdater anyway we can hide the whole thing
_ui->updatesGroupBox->hide();
#else
_ui->updateChannelLabel->hide();
_ui->updateChannel->hide();
#endif
}
}

GeneralSettings::~GeneralSettings()
Expand Down

0 comments on commit e1a4c3a

Please sign in to comment.