changeset 263:c8d9ef252b23

menu force-size does not need a session, just an active terminal
author Carl Byington <carl@five-ten-sg.com>
date Wed, 16 Jul 2014 12:07:15 -0700
parents db26984b69f5
children 3e9eae36e5ef
files src/com/five_ten_sg/connectbot/ConsoleActivity.java
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/ConsoleActivity.java	Tue Jul 15 20:59:40 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/ConsoleActivity.java	Wed Jul 16 12:07:15 2014 -0700
@@ -617,8 +617,7 @@
                 List<String> itemList = new ArrayList<String>();
                 final TerminalView terminalView = (TerminalView) findCurrentView(R.id.console_flip);
 
-                if (terminalView == null)
-                    return;
+                if (terminalView == null) return;
 
                 final TerminalBridge bridge = terminalView.bridge;
 
@@ -906,7 +905,7 @@
             resize.setAlphabeticShortcut('r');
 
         resize.setIcon(android.R.drawable.ic_menu_crop);
-        resize.setEnabled(sessionOpen);
+        resize.setEnabled((activeTerminal);
         resize.setOnMenuItemClickListener(new OnMenuItemClickListener() {
             public boolean onMenuItemClick(MenuItem item) {
                 final TerminalView terminalView = (TerminalView) findCurrentView(R.id.console_flip);