We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9c2bc commit 1f6c0d4Copy full SHA for 1f6c0d4
1 file changed
src/main/java/com/ghostchu/peerbanhelper/gui/impl/swing/mainwindow/SwingMainWindow.java
@@ -87,7 +87,7 @@ private void registerTabs() {
87
&& ExternalSwitch.parseBoolean("pbh.swingui.webuiTab", true)) {
88
89
try { // SWT possible be null here on unsupported platform
90
- boolean isWindows = System.getProperty("os.name").toLowerCase().contains("windows");
+ boolean isWindows = System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("windows");
91
if (isWindows) { // SWT 检测到不支持的系统直接就把 JVM 轰飞了,需要先检测系统版本
92
var buildNumber = new oshi.SystemInfo().getOperatingSystem().getVersionInfo().getBuildNumber();
93
if (Long.parseLong(buildNumber) > 14393) {
0 commit comments