MCPcopy Create free account
hub / github.com/98teg/NativeDialogs / _process

Method _process

src/native_accept_dialog.cpp:43–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void NativeAcceptDialog::_process(float delta) {
44 if (!message || !message->ready(0)) {
45 return;
46 }
47
48 pfd::button button = message->result();
49 if (button == pfd::button::ok || button == pfd::button::yes) {
50 emit_signal("confirmed");
51 } else {
52 emit_signal("canceled");
53 }
54
55 hide();
56}
57
58void NativeAcceptDialog::_exit_tree() {
59 hide();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected