mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 13:05:22 +02:00
[187711] use action.isChecked() to determine new toggle state - not the view flag
This commit is contained in:
parent
794ccd8169
commit
d4c902100a
1 changed files with 1 additions and 1 deletions
|
@ -469,7 +469,7 @@ public class LinkWithSystemViewAction implements IViewActionDelegate {
|
||||||
|
|
||||||
public void run(IAction action) {
|
public void run(IAction action) {
|
||||||
if (_systemViewPart != null){
|
if (_systemViewPart != null){
|
||||||
boolean isToggled = _systemViewPart.isLinkingEnabled();
|
boolean isToggled = action.isChecked();
|
||||||
_systemViewPart.setLinkingEnabled(!isToggled, _linker);
|
_systemViewPart.setLinkingEnabled(!isToggled, _linker);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue