mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 06:32:32 +00:00
Show the start button when a plugin is not running, and the stop button when a plugin is running.
This commit is contained in:
1 parent
10d37a9be5
commit
ecbc0a2a2d
6 files changed
+99
-5
No files matched your search
@@ -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