Skip to content

Commit

Permalink
Merge pull request #1300 from b2ihealthcare/issue/SO-5952-windows11-u…
Browse files Browse the repository at this point in the history
…i-menu-item-icons

SO-5952: Windows 11 system detection
  • Loading branch information
cmark committed Jun 20, 2024
2 parents b45cdde + 428367e commit d1f466f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,13 @@ public static Path toAbsolutePathBundleEntry(Class<?> contextClass, String path)
public static boolean isOSX() {
return Platform.OS_MACOSX.equals(Platform.getOS());
}

/**
* Returns <code>true</code> if the underlying system is a Windows 11, <code>false</code> otherwise.
* @return
*/
public static boolean isWindows11() {
return System.getProperty("os.name").equals("Windows 11");
}

}

0 comments on commit d1f466f

Please sign in to comment.