mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Bug 546291 reflect the state of the active tab on TabScrollLockAction
Change-Id: I03dc0e9b9975d03b9f5dd191e7aa992b8a5aae68 Signed-off-by: Christian Mathis <chris.mh3@gmx.at>
This commit is contained in:
parent
009ec61cff
commit
81ba2736bd
1 changed files with 2 additions and 0 deletions
|
@ -56,5 +56,7 @@ public class TabScrollLockAction extends AbstractTerminalAction {
|
||||||
@Override
|
@Override
|
||||||
public void updateAction(boolean aboutToShow) {
|
public void updateAction(boolean aboutToShow) {
|
||||||
setEnabled(aboutToShow && getTarget() != null && getTarget().getState() == TerminalState.CONNECTED);
|
setEnabled(aboutToShow && getTarget() != null && getTarget().getState() == TerminalState.CONNECTED);
|
||||||
|
setChecked(getTarget() != null && getTarget().isScrollLock());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue