diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/tweaker')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/tweaker/TweakerUtils.java | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java index 2c417909e..7947b6ebc 100644 --- a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java +++ b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java @@ -1,5 +1,7 @@ package at.hannibal2.skyhanni.tweaker; +import at.hannibal2.skyhanni.utils.OSUtils; + import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JPanel; @@ -32,7 +34,7 @@ public class DownloadSourceChecker { }; public static void init() { - if (!TweakerUtils.isOnWindows()) return; + if (!OSUtils.INSTANCE.isWindows()) return; URI host = getDangerousHost(); if (host != null) { openMenu(host); diff --git a/src/main/java/at/hannibal2/skyhanni/tweaker/TweakerUtils.java b/src/main/java/at/hannibal2/skyhanni/tweaker/TweakerUtils.java index b9070e0c1..ffd415c10 100644 --- a/src/main/java/at/hannibal2/skyhanni/tweaker/TweakerUtils.java +++ b/src/main/java/at/hannibal2/skyhanni/tweaker/TweakerUtils.java @@ -11,10 +11,6 @@ import java.security.PrivilegedAction; public class TweakerUtils { - public static boolean isOnWindows() { - return System.getProperty("os.name").toLowerCase().contains("win"); - } - public static void openUrl(String url) { try { Desktop.getDesktop().browse(new URI(url)); |