Exemplo n.º 1
0
 render() {
   libui.Ui.onShouldQuit(() => {
     this.props.onShouldQuit();
     disconnectDevtools();
     libui.stopLoop();
   });
   this.renderChildNode(this);
 }
Exemplo n.º 2
0
 update(oldProps, newProps) {
   if (newProps.onShouldQuit !== oldProps.onShouldQuit) {
     libui.Ui.onShouldQuit(() => {
       this.newProps.onShouldQuit();
       libui.stopLoop();
     });
   }
 }