forked from I2P_Developers/i2p.i2p
console: Hide cancel graceful shutdown button unless we are shutting down
This commit is contained in:
@ -183,6 +183,15 @@ public class ConfigServiceHandler extends FormHandler {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Should we show the cancel button?
|
||||
*
|
||||
* @since 0.9.19
|
||||
*/
|
||||
public boolean shouldShowCancelGraceful() {
|
||||
return _context.router().gracefulShutdownInProgress();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processForm() {
|
||||
if (_action == null) return;
|
||||
|
Reference in New Issue
Block a user