Hello. Target: cpp, next;
I can’t find the main close event to replace/prevent it.
This topic did not help.
Using Lib.current.stage.application.onExit.add, I can only add an additional function
Thank you
Hello. Target: cpp, next;
I can’t find the main close event to replace/prevent it.
This topic did not help.
Using Lib.current.stage.application.onExit.add, I can only add an additional function
Thank you
lime.app.Application.current.window.onClose.cancel();
did not work
Have you tried adding a listener to window.onClose
, and canceling from there?
Note that this will only work on native targets, if it works at all. (“Try to allow exit to be canceled” isn’t very reassuring.)
I can not make what I want, neither solution does not work, I need a working example code. It’s trivial task, why is it so difficult.