mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
plugin advertiser: do not suggest to restart if no plugins were installed/enabled
This commit is contained in:
+12
-8
@@ -92,17 +92,21 @@ public class PluginsAdvertiserDialog extends DialogWrapper {
|
||||
PluginManagerMain.notifyPluginsWereInstalled(null, myProject);
|
||||
}
|
||||
};
|
||||
try {
|
||||
PluginManagerMain.downloadPlugins(nodes, myAllPlugins, notifyRunnable, null);
|
||||
}
|
||||
catch (IOException e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
for (IdeaPluginDescriptor pluginDescriptor : pluginsToEnable) {
|
||||
PluginManagerCore.enablePlugin(pluginDescriptor.getPluginId().getIdString());
|
||||
}
|
||||
if (nodes.isEmpty()) {
|
||||
notifyRunnable.run();
|
||||
if (!nodes.isEmpty()) {
|
||||
try {
|
||||
PluginManagerMain.downloadPlugins(nodes, myAllPlugins, notifyRunnable, null);
|
||||
}
|
||||
catch (IOException e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!pluginsToEnable.isEmpty()) {
|
||||
notifyRunnable.run();
|
||||
}
|
||||
}
|
||||
super.doOKAction();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user