mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #7879 from nextcloud/backport/7869/stable-3.16
[stable-3.16] Hide update channels options when needed.
This commit is contained in:
commit
6cf7fe048f
@ -326,8 +326,14 @@ void GeneralSettings::loadMiscSettings()
|
||||
#if defined(BUILD_UPDATER)
|
||||
void GeneralSettings::loadUpdateChannelsList() {
|
||||
ConfigFile cfgFile;
|
||||
if (cfgFile.serverHasValidSubscription()) {
|
||||
_ui->updateChannel->hide();
|
||||
_ui->updateChannelLabel->hide();
|
||||
return;
|
||||
}
|
||||
|
||||
const auto validUpdateChannels = cfgFile.validUpdateChannels();
|
||||
if (_currentUpdateChannelList.isEmpty() || (_currentUpdateChannelList != validUpdateChannels && !cfgFile.serverHasValidSubscription())) {
|
||||
if (_currentUpdateChannelList.isEmpty() || _currentUpdateChannelList != validUpdateChannels){
|
||||
_currentUpdateChannelList = validUpdateChannels;
|
||||
_ui->updateChannel->clear();
|
||||
_ui->updateChannel->addItems(_currentUpdateChannelList);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user