[platform] use default update channel for 'Check for Updates' when selection combobox is not present

If an IDE disables combobox which allows users to change update channel, 'Check for Updates' button should use the default channel, not the first available channel as it was before.

GitOrigin-RevId: 246feb949c69af0f8d53ca8b15966fe282495273
This commit is contained in:
Eugene Yakavets
2022-02-09 07:46:00 +00:00
committed by intellij-monorepo-bot
parent f87747e9bd
commit 92f14ae1e3
@@ -81,7 +81,9 @@ class UpdateSettingsConfigurable @JvmOverloads constructor (private val checkNow
settingsCopy.state.copyFrom(settings.state)
settingsCopy.state.isCheckNeeded = true
settingsCopy.state.isPluginsCheckNeeded = true
settingsCopy.selectedChannelStatus = selectedChannel(channelModel.selected)
if (channelSelectionLockedMessage == null) {
settingsCopy.selectedChannelStatus = selectedChannel(channelModel.selected)
}
UpdateChecker.updateAndShowResult(project, settingsCopy)
updateLastCheckedLabel(settings.lastTimeChecked)
}