Skip to content

Commit a136181

Browse files
committed
Removed unnecessary comments from the code
1 parent 5d621bb commit a136181

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,14 +299,12 @@ public void updateHorizontalDividerPosition() {
299299
if (mainStage.isShowing() && !sidePane.getChildren().isEmpty()) {
300300
double savedProportion = preferences.getGuiPreferences().getHorizontalDividerPosition();
301301

302-
// Fix: fallback to 0.2 if saved value is invalid
303302
if (savedProportion <= 0.0 || savedProportion >= 1.0 || Double.isNaN(savedProportion)) {
304303
savedProportion = 0.2;
305304
}
306305

307306
horizontalSplit.setDividerPositions(savedProportion);
308307

309-
// Subscribe to save user-adjusted sidebar position
310308
if (horizontalDividerSubscription != null) {
311309
horizontalDividerSubscription.unsubscribe();
312310
}

0 commit comments

Comments
 (0)