mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
don't fail if there is no shutdown hook.
This commit is contained in:
parent
20e011178e
commit
aa4813d7b1
1 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ public abstract class Overlay<T extends Overlay> {
|
|||
private HPos buttonAlignment = HPos.RIGHT;
|
||||
|
||||
protected Optional<Runnable> closeHandlerOptional = Optional.<Runnable>empty();
|
||||
protected Optional<Runnable> actionHandlerOptional = Optional.<Runnable>empty();
|
||||
protected Optional<Runnable> actionHandlerOptional = Optional.empty();
|
||||
protected Optional<Runnable> secondaryActionHandlerOptional = Optional.<Runnable>empty();
|
||||
protected ChangeListener<Number> positionListener;
|
||||
|
||||
|
@ -438,7 +438,7 @@ public abstract class Overlay<T extends Overlay> {
|
|||
|
||||
public T useShutDownButton() {
|
||||
this.actionButtonText = Res.get("shared.shutDown");
|
||||
this.actionHandlerOptional = Optional.of(BisqApp.getShutDownHandler());
|
||||
this.actionHandlerOptional = Optional.ofNullable(BisqApp.getShutDownHandler());
|
||||
//noinspection unchecked
|
||||
return (T) this;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue