mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-331015 IDEA still suggests downloading a new version despite IDE update check being disabled
GitOrigin-RevId: 709532ab8a778b271e553f57da966407f6d05365
This commit is contained in:
committed by
intellij-monorepo-bot
parent
37a956a2a9
commit
8463c0a81b
+18
-3
@@ -58,6 +58,10 @@ final class UpdateSettingsEntryPointActionProvider implements ActionProvider {
|
||||
}
|
||||
|
||||
private static void preparePrevPlatformUpdate() {
|
||||
if (!UpdateSettings.getInstance().isCheckNeeded()) {
|
||||
return;
|
||||
}
|
||||
|
||||
PropertiesComponent properties = PropertiesComponent.getInstance();
|
||||
BuildNumber newBuildForUpdate;
|
||||
try {
|
||||
@@ -141,9 +145,15 @@ final class UpdateSettingsEntryPointActionProvider implements ActionProvider {
|
||||
if (settings.isCheckNeeded()) {
|
||||
setPlatformUpdateInfo(platformUpdateInfo);
|
||||
}
|
||||
else {
|
||||
setPlatformUpdateInfo(null);
|
||||
}
|
||||
if (settings.isPluginsCheckNeeded()) {
|
||||
newPlatformUpdate(updatedPlugins, incompatiblePlugins, null);
|
||||
}
|
||||
else {
|
||||
newPlatformUpdate(null, null, (String)null);
|
||||
}
|
||||
updateState();
|
||||
}
|
||||
|
||||
@@ -173,13 +183,18 @@ final class UpdateSettingsEntryPointActionProvider implements ActionProvider {
|
||||
|
||||
public static void newPluginUpdates(@NotNull Collection<PluginDownloader> updatedPlugins,
|
||||
@NotNull Collection<PluginNode> customRepositoryPlugins) {
|
||||
myUpdatedPlugins = updatedPlugins;
|
||||
myCustomRepositoryPlugins = customRepositoryPlugins;
|
||||
if (UpdateSettings.getInstance().isPluginsCheckNeeded()) {
|
||||
myUpdatedPlugins = updatedPlugins;
|
||||
myCustomRepositoryPlugins = customRepositoryPlugins;
|
||||
}
|
||||
else {
|
||||
myUpdatedPlugins = null;
|
||||
}
|
||||
updateState();
|
||||
}
|
||||
|
||||
private static void newUpdatedPlugins(@Nullable Collection<PluginDownloader> updatedPlugins) {
|
||||
myUpdatedPlugins = updatedPlugins == null || updatedPlugins.isEmpty() ? null : updatedPlugins;
|
||||
myUpdatedPlugins = ContainerUtil.isEmpty(updatedPlugins) ? null : updatedPlugins;
|
||||
updateState();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user