[fixes #428] minor patch to fix behavior of toggling the details pane in the debug log window
This commit is contained in:
parent
f41f9c1ae4
commit
6add0b396c
@ -169,13 +169,7 @@ public class DebugLogDialog extends JDialog {
|
|||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
boolean isActive = ((JCheckBox)e.getSource()).isSelected();
|
boolean isActive = ((JCheckBox)e.getSource()).isSelected();
|
||||||
log.info(" toggled to: "+isActive );
|
enableDetailsPanel( isActive);
|
||||||
bottomPanel.setEnabled(isActive);
|
|
||||||
if(isActive) {
|
|
||||||
split.setDividerLocation(0.5);
|
|
||||||
}else {
|
|
||||||
split.setDividerLocation(1.0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -460,6 +454,17 @@ public class DebugLogDialog extends JDialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void enableDetailsPanel(final boolean isActive){
|
||||||
|
bottomPanel.setEnabled(isActive);
|
||||||
|
if(isActive){
|
||||||
|
split.setDividerLocation(0.5);
|
||||||
|
split.setBottomComponent(bottomPanel);
|
||||||
|
}else {
|
||||||
|
split.setBottomComponent(null);
|
||||||
|
split.setDividerLocation(1.0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user