Skip to content

Commit d1ae3d9

Browse files
committed
Simplify if statements
1 parent b8afe92 commit d1ae3d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/scala/introprog/Swing.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ object Swing {
5555
private def setPlatformSpecificLookAndFeel(): Unit = {
5656
import javax.swing.UIManager.setLookAndFeel
5757
if (isOS("linux")) findLookAndFeel("gtk").foreach(setLookAndFeel)
58-
else if (isOS("win")) findLookAndFeel("win").foreach(setLookAndFeel)
58+
else if (isOS("win") || isInProc("WSL")) findLookAndFeel("win").foreach(setLookAndFeel)
5959
else if (isOS("mac")) findLookAndFeel("apple").foreach(setLookAndFeel)
60-
else if (isInProc("WSL")) findLookAndFeel("win").foreach(setLookAndFeel)
6160
else javax.swing.UIManager.setLookAndFeel(
6261
javax.swing.UIManager.getSystemLookAndFeelClassName()
6362
)

0 commit comments

Comments
 (0)