private int Run(Action action) { try { QueueMain(action); Libui.Main(); } catch (Exception) { return(-1); } return(0); }