forked from I2P_Developers/i2p.i2p
Show the start button when a plugin is not running, and the stop button when a plugin is running.
This commit is contained in:
@ -147,9 +147,11 @@ public class ConfigClientsHelper extends HelperBase {
|
||||
}
|
||||
desc.append("</table>");
|
||||
boolean enableStop = !Boolean.valueOf(appProps.getProperty("disableStop")).booleanValue();
|
||||
enableStop &= PluginStarter.isPluginRunning(app, _context);
|
||||
boolean enableStart = !PluginStarter.isPluginRunning(app, _context);
|
||||
renderForm(buf, app, app, false,
|
||||
"true".equals(val), false, desc.toString(), false, false,
|
||||
updateURL != null, enableStop, true, true);
|
||||
updateURL != null, enableStop, true, enableStart);
|
||||
}
|
||||
}
|
||||
buf.append("</table>\n");
|
||||
|
Reference in New Issue
Block a user