diff options
author | Keith Packard <keithp@keithp.com> | 2015-06-16 23:40:34 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-06-17 00:13:03 -0700 |
commit | 5cacce8099bfc4fa4019538ac88be00bd2023865 (patch) | |
tree | df5e43c4bdfbd55b765d6d8dd280ad86316c0dfa /altoslib/AltosLink.java | |
parent | 75682a5a18f28acf8f4a61a0d45dad461218186e (diff) |
altoslib: Let the application disable the link cancel dialog
This lets the application control whether to pop up the cancel dialog
when the link isn't working.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosLink.java')
-rw-r--r-- | altoslib/AltosLink.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/altoslib/AltosLink.java b/altoslib/AltosLink.java index fca8beb8..4f3a1ed2 100644 --- a/altoslib/AltosLink.java +++ b/altoslib/AltosLink.java @@ -86,10 +86,17 @@ public abstract class AltosLink implements Runnable { public boolean reply_abort; public int in_reply; + boolean cancel_enable = true; + + public void set_cancel_enable(boolean e) { + cancel_enable = e; + } boolean reply_timeout_shown = false; private boolean check_reply_timeout() { + if (!cancel_enable) + return false; if (!reply_timeout_shown) reply_timeout_shown = show_reply_timeout(); return reply_abort; |