[ui] hides channel selector when IDE updates are managed externally (IDEA-190251)

This commit is contained in:
Roman Shevchenko
2018-04-13 19:40:44 +02:00
parent 742effeb06
commit 0bd689be50
2 changed files with 3 additions and 1 deletions
@@ -142,7 +142,8 @@ public class UpdateSettingsConfigurable implements SearchableConfigurable {
String packageManager = mySettings.getPackageManagerName();
if (packageManager != null) {
myUpdateChannels.setEnabled(false);
myCheckForUpdates.setText(IdeBundle.message("updates.settings.checkbox.external"));
myUpdateChannels.setVisible(false);
myChannelWarning.setText(IdeBundle.message("updates.settings.external", packageManager));
myChannelWarning.setForeground(JBColor.GRAY);
myChannelWarning.setVisible(true);
@@ -968,6 +968,7 @@ updates.settings.title=Updates
updates.last.check.never=Never
updates.settings.check.now.button=&Check Now
updates.settings.checkbox=Automatically check updates for
updates.settings.checkbox.external=Automatically check for plugin updates
updates.settings.external=IDE updates are managed externally by {0}
updates.settings.channel.locked=EAP builds can only be updated from the EAP channel
updates.settings.unstable=Please note that this channel is less stable than your current one.