1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +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:
Christian Mathis 2019-04-08 15:32:39 +02:00
parent 009ec61cff
commit 81ba2736bd

View file

@ -56,5 +56,7 @@ public class TabScrollLockAction extends AbstractTerminalAction {
@Override
public void updateAction(boolean aboutToShow) {
setEnabled(aboutToShow && getTarget() != null && getTarget().getState() == TerminalState.CONNECTED);
setChecked(getTarget() != null && getTarget().isScrollLock());
}
}