(Consumer<Boolean> canCloseCallback)
| 71 | } |
| 72 | |
| 73 | public void onClose(Consumer<Boolean> canCloseCallback) { |
| 74 | if (canCloseCallback != null) { //will be null if app exited |
| 75 | canCloseCallback.accept(true); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | public void showMenu() { |
| 80 | if (header instanceof MenuHeader mh) { |