1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00

Merge "Bug 546291 reflect the state of the active tab on TabScrollLockAction"

This commit is contained in:
Nick Boldt 2019-07-30 13:31:41 -04:00 committed by Gerrit Code Review @ Eclipse.org
commit 499db8b2b5

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());
}
}