Skip to content

Commit

Permalink
Confirm before browse to download page
Browse files Browse the repository at this point in the history
  • Loading branch information
awidesky committed May 7, 2021
1 parent 947c296 commit f246c75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static void checkYoutubedl() {
if (!checkYoutubedlPath(youtubedlpath + "youtube-dl")) {

GUI.error("Error!", "youtube-dl does not exist in\n\t" + youtubedlpath + "\tor system %path%!", null);
Main.webBrowse("http://ytdl-org.github.io/youtube-dl/download.html");
if (confirm("Open link in browser?", "Move to download page of youtube-dl?")) Main.webBrowse("http://ytdl-org.github.io/youtube-dl/download.html");
Main.kill(1);

}
Expand Down Expand Up @@ -82,7 +82,7 @@ public static void checkFfmpeg() {
} catch (Exception e) {

GUI.error("Error!", "ffmpeg does not exist in\n\t" + youtubedlpath + "\tor system %path%!", null);
Main.webBrowse("https://ffmpeg.org/download.html");
if (confirm("Open link in browser?", "Move to download page of ffmpeg?")) Main.webBrowse("https://ffmpeg.org/download.html");
Main.kill(1);

}
Expand Down

0 comments on commit f246c75

Please sign in to comment.