diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-10-04 03:54:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-04 03:54:19 +0200 |
commit | a95bf3a5712951eff5d4d52f418468e901e1eda6 (patch) | |
tree | 42729e8769773d11e048868bc6692c14a133c78c /src/main/java/at/hannibal2/skyhanni/tweaker | |
parent | a8bd03caf2ec478fe926c160fd67d4dd2df7ef1e (diff) | |
download | skyhanni-a95bf3a5712951eff5d4d52f418468e901e1eda6.tar.gz skyhanni-a95bf3a5712951eff5d4d52f418468e901e1eda6.tar.bz2 skyhanni-a95bf3a5712951eff5d4d52f418468e901e1eda6.zip |
Removed the password in download source check (#2649)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/tweaker')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java index 63a92849b..2c417909e 100644 --- a/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java +++ b/src/main/java/at/hannibal2/skyhanni/tweaker/DownloadSourceChecker.java @@ -18,15 +18,6 @@ public class DownloadSourceChecker { private static final String GITHUB_REPO = "511310721"; private static final String GITHUB_REPO_TEXT = "repo_id=" + GITHUB_REPO; private static final String MODRINTH_URL = "/data/byNkmv5G/"; - private static final String THE_PASSWORD = "danger"; - - private static final String[] PASSWORD_POPUP = { - "If someone asks you to type in here,", - "", - "the likelihood of them ratting you is high!", - "", - "Enter the password:" - }; private static final String[] SECURITY_POPUP = { "The file you are trying to run is hosted on a non-trusted domain.", @@ -78,17 +69,6 @@ public class DownloadSourceChecker { JPanel buttons = new JPanel(); buttons.add(TweakerUtils.createButton( - "Skip (Trusted Users Only)", - () -> { - String password = JOptionPane.showInputDialog(frame, String.join("\n", PASSWORD_POPUP)); - if (password != null && password.equals(THE_PASSWORD)) { - close.set(false); - frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING)); - } - } - )); - - buttons.add(TweakerUtils.createButton( "Close", () -> { close.set(true); |