Sfoglia il codice sorgente

No need to separately test for the contains

Toni Helenius 3 anni fa
parent
commit
f6ccb8e5d3

+ 1 - 3
jme3-desktop/src/main/java/com/jme3/app/SettingsDialog.java

@@ -758,9 +758,7 @@ public final class SettingsDialog extends JFrame {
                 }
                 }
                 
                 
                 String res = width + " x " + height;
                 String res = width + " x " + height;
-                if (!resolutions.contains(res)) {
-                    resolutions.add(res);
-                }
+                resolutions.add(res);
             }
             }
         }
         }