public class APQHandlers
{
- protected static boolean setAPQHandlers = false;
-
public static boolean setAPQHandlers(GDesktop desktop)
{
FlatDesktop.setAboutHandler(() -> {
response.cancelQuit();
}
});
-
- setAPQHandlers = true;
-
- return setAPQHandlers;
+ // if we got to here, no exceptions occurred when we set the handlers.
+ return true;
}
}