Skip to content

Commit

Permalink
Reduce log level noise (#12200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr authored Nov 17, 2024
1 parent d0ee2a9 commit 9093b72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/jabref/gui/entryeditor/FieldsEditorTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private void addPreviewPanel() {

public void removePreviewPanelFromThisTab() {
assert this.getContent() instanceof SplitPane;
if (this.getContent() instanceof SplitPane splitPane && splitPane.getItems().contains(previewPanel)) {
if (this.getContent() instanceof SplitPane splitPane) {
splitPane.getItems().remove(previewPanel);
// Needed to "redraw" the split pane with one item (because JavaFX does not readjust if it is shown)
// splitPane.setDividerPositions(1.0);
Expand All @@ -260,10 +260,10 @@ public void removePreviewPanelFromThisTab() {

@Override
protected void handleFocus() {
LOGGER.error("This is {}", preferences.getPreviewPreferences().showPreviewAsExtraTabProperty().get());
LOGGER.error("This is then {}", !preferences.getPreviewPreferences().showPreviewAsExtraTabProperty().get());
LOGGER.trace("This is {}", preferences.getPreviewPreferences().showPreviewAsExtraTabProperty().get());
LOGGER.trace("This is then {}", !preferences.getPreviewPreferences().showPreviewAsExtraTabProperty().get());
if (!preferences.getPreviewPreferences().showPreviewAsExtraTabProperty().get()) {
LOGGER.error("Focus on preview panel");
LOGGER.trace("Focus on preview panel");

// We need to move the preview panel from the non-visible tab to the visible tab
removePreviewPanelFromOtherTabs();
Expand Down

0 comments on commit 9093b72

Please sign in to comment.