forked from I2P_Developers/i2p.i2p
/configclients:
- Re-enable plugin installation by default - Don't show configuration section or update-all button if no plugins installed
This commit is contained in:
@@ -59,7 +59,7 @@ public class ConfigClientsHandler extends FormHandler {
|
||||
}
|
||||
if (_action.equals(_("Install Plugin"))) {
|
||||
if (pluginsEnabled &&
|
||||
(_context.getBooleanProperty(ConfigClientsHelper.PROP_ENABLE_PLUGIN_INSTALL) ||
|
||||
(_context.getBooleanPropertyDefaultTrue(ConfigClientsHelper.PROP_ENABLE_PLUGIN_INSTALL) ||
|
||||
isAdvanced()))
|
||||
installPlugin();
|
||||
else
|
||||
|
||||
@@ -39,7 +39,12 @@ public class ConfigClientsHelper extends HelperBase {
|
||||
/** @since 0.9.14.1 */
|
||||
public boolean isPluginInstallEnabled() {
|
||||
return PluginStarter.pluginsEnabled(_context) &&
|
||||
(_context.getBooleanProperty(PROP_ENABLE_PLUGIN_INSTALL) || isAdvanced());
|
||||
(_context.getBooleanPropertyDefaultTrue(PROP_ENABLE_PLUGIN_INSTALL) || isAdvanced());
|
||||
}
|
||||
|
||||
/** @since 0.9.15 */
|
||||
public boolean isPluginUpdateEnabled() {
|
||||
return !PluginStarter.getPlugins().isEmpty();
|
||||
}
|
||||
|
||||
/** @since 0.8.3 */
|
||||
|
||||
Reference in New Issue
Block a user