mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Merge "Bug 546291 reflect the state of the active tab on TabScrollLockAction"
This commit is contained in:
commit
499db8b2b5
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