Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Release v1.2.2
Browse files Browse the repository at this point in the history
CHANGED interval to double
  • Loading branch information
justinvollmer committed Jan 22, 2023
2 parents 3485c87 + 6f7e7ea commit 5d89d6d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Link-Manager v1.2.1
# Link-Manager v1.2.2
This is my first app! It allows you to write, load and save a list of links. With one click you can open them all in your selected browser or simply download images, videos and gifs with one click. It will also allow you to encrypt your list of links with a 256 bit AES encryption.
Binary file modified out/artifacts/LinkManager_jar/LinkManager.jar
Binary file not shown.
Binary file modified out/production/LinkManager/app/DownloadManagerDialog.class
Binary file not shown.
Binary file modified out/production/LinkManager/app/Version.class
Binary file not shown.
12 changes: 6 additions & 6 deletions src/app/DownloadManagerDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

public class DownloadManagerDialog extends JDialog implements Runnable {
private DownloadManager manager;
private int interval;
private double interval;
private Thread downloadingThread;
private JPanel pnlNorth;
private JLabel lblTitle;
Expand Down Expand Up @@ -283,15 +283,15 @@ public DownloadManagerDialog(MainWindow mw, JTextArea taDisplayMW) {
btnDownload.addActionListener(e -> {
this.manager = new DownloadManager(tfPath.getText());
try {
if ((tfInterval.getText().isBlank() || Integer.parseInt(tfInterval.getText()) < 1) && !isDownloading) {
if ((tfInterval.getText().isBlank() || Double.parseDouble(tfInterval.getText()) <= 0) && !isDownloading) {
int yesno = JOptionPane.showConfirmDialog(this, "We would recommend using an interval. The website might detect you as spam. \nDo you want to continue?", "Warning", JOptionPane.YES_NO_OPTION);
if (yesno == 1) {
return;
}
tfInterval.setText("0");
this.interval = 0;
tfInterval.setText("0.0");
this.interval = 0.0;
} else {
this.interval = Integer.parseInt(tfInterval.getText());
this.interval = Double.parseDouble(tfInterval.getText());
}
} catch (Exception cannotCastToInt) {
JOptionPane.showMessageDialog(this, "Your interval input is not a valid number.", "Error", JOptionPane.ERROR_MESSAGE);
Expand Down Expand Up @@ -469,7 +469,7 @@ public void run() {
tableModel.fireTableDataChanged();
current++;
tfDownloadStatus.setText(currentStatus + " " + current + "/" + total);
Thread.sleep(interval * 1000L);
Thread.sleep((long) (interval * 1000L));
}
int okQuit = JOptionPane.showConfirmDialog(DownloadManagerDialog.this, "Downloading process finished! \nDo you want to Exit the Download Manager?", "Done", JOptionPane.YES_NO_OPTION);
if (okQuit == 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/app/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class Version {
private static int majorVersion = 1;
private static int minorVersion = 2;
private static int patchVersion = 1;
private static int patchVersion = 2;

public static String getSoftwareVersion() {
return "v" + majorVersion + "." + minorVersion + "." + patchVersion;
Expand Down

0 comments on commit 5d89d6d

Please sign in to comment.