Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv

### Fixed

- We fixed an issue where an exception dialog was shown when moving side panels down/up. [#15207](https://github.com/JabRef/jabref/issues/15207)
- We fixed a false "Invalid citation key" warning for keys with diacritical marks. [#14953](https://github.com/JabRef/jabref/issues/14953)
- We fixed an issue where duplicate fields can be created. [#15130](https://github.com/JabRef/jabref/issues/15130)
- We fixed an issue where blank fields could be created. [#15130](https://github.com/JabRef/jabref/issues/15130)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jabref.gui.frame;

import java.util.EnumMap;
import java.util.EnumSet;
import java.util.Map;
import java.util.Set;
Expand All @@ -20,8 +21,10 @@ public class SidePanePreferences {
public SidePanePreferences(Set<SidePaneType> visiblePanes,
Map<SidePaneType, Integer> preferredPositions,
int webSearchFetcherSelected) {
this.visiblePanes = FXCollections.observableSet(visiblePanes);
this.preferredPositions = FXCollections.observableMap(preferredPositions);
this.visiblePanes = FXCollections.observableSet(EnumSet.noneOf(SidePaneType.class));
this.visiblePanes.addAll(visiblePanes);
this.preferredPositions = FXCollections.observableMap(new EnumMap<>(SidePaneType.class));
this.preferredPositions.putAll(preferredPositions);
this.webSearchFetcherSelected = new SimpleIntegerProperty(webSearchFetcherSelected);
}

Expand Down