aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormendhak <smaltaf@msn.com>2013-06-19 06:26:45 +0100
committerKenny Root <kenny@the-b.org>2015-03-27 13:44:30 +0000
commit582524f7bfa91f575bb6536f90789f674138f2f5 (patch)
tree2251721ff067e77fbf6da887915e1ed01bb18110 /res
parentc6bbfe5aecc43ef551c395d748d47021ae2530e8 (diff)
downloadconnectbot-582524f7bfa91f575bb6536f90789f674138f2f5.tar.gz
connectbot-582524f7bfa91f575bb6536f90789f674138f2f5.tar.bz2
connectbot-582524f7bfa91f575bb6536f90789f674138f2f5.zip
Add a close-on-disconnect option
Defaults to off to preserve previous behavior. Original patch by Jeff King (@peff) Fixes #23
Diffstat (limited to 'res')
-rw-r--r--res/values/strings.xml4
-rw-r--r--res/xml/host_prefs.xml6
2 files changed, 10 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 87206cf..49c3af4 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -293,6 +293,10 @@
<!-- Summary for preference asking whether the host should be reconnected to when it disconnects -->
<string name="hostpref_stayconnected_summary">"Try to reconnect to host if disconnected"</string>
+ <!-- Setting for whether we should prompt to close after getting disconnected -->
+ <string name="hostpref_quickdisconnect_title">"Close on disconnect"</string>
+ <string name="hostpref_quickdisconnect_summary">"Close immediately after remote disconnect without prompting."</string>
+
<!-- Setting for what key code is sent to the server when DEL key is pressed. -->
<string name="hostpref_delkey_title">"DEL Key"</string>
<!-- Summary for field asking what key code is sent to the server when DEL key is pressed. -->
diff --git a/res/xml/host_prefs.xml b/res/xml/host_prefs.xml
index fea90cb..a2fc1a4 100644
--- a/res/xml/host_prefs.xml
+++ b/res/xml/host_prefs.xml
@@ -85,6 +85,12 @@
android:summary="@string/hostpref_stayconnected_summary"
/>
+ <CheckBoxPreference
+ android:key="quickdisconnect"
+ android:title="@string/hostpref_quickdisconnect_title"
+ android:summary="@string/hostpref_quickdisconnect_summary"
+ />
+
<ListPreference
android:key="delkey"
android:title="@string/hostpref_delkey_title"