Skip to content

Commit

Permalink
fixing bug for system propety os.name
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmathus committed May 22, 2020
1 parent feaca4e commit c7e6aaf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/runwar/tray/Tray.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ private void instantiateMenu(String trayConfigJSON, String statusText, String ic
}

public void addMenuItems(JSONArray items, Menu menu, Server server) {
System.setProperty("os.name", System.getProperty("os.name").toLowerCase());
for (Object ob : items) {
JSONObject itemInfo = (JSONObject) ob;
InputStream is = null;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/runwar/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static String replaceHost(String openbrowserURL, String oldHost, String n

public static boolean isWindows() {

return (OS.indexOf("win") >= 0);
return (OS.toLowerCase().indexOf("win") >= 0);

}

Expand Down

0 comments on commit c7e6aaf

Please sign in to comment.