From 68b13cbbad1b4c7d8a060d29dab4b082758f187b Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Fri, 22 Jun 2018 17:03:04 -0400 Subject: [PATCH] Added a rip method status for when a download completes due to the history.end_rip_after_already_seen config setting --- src/main/java/com/rarchives/ripme/ui/MainWindow.java | 6 ++++++ src/main/java/com/rarchives/ripme/ui/RipStatusMessage.java | 1 + 2 files changed, 7 insertions(+) diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index 0193aa08..9f4ff519 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -1206,6 +1206,12 @@ public final class MainWindow implements Runnable, RipStatusHandler { appendLog("Downloaded " + msg.getObject(), Color.GREEN); } break; + case DOWNLOAD_COMPLETE_HISTORY: + if (LOGGER.isEnabledFor(Level.INFO)) { + appendLog("" + msg.getObject(), Color.GREEN); + } + break; + case DOWNLOAD_ERRORED: if (LOGGER.isEnabledFor(Level.ERROR)) { appendLog((String) msg.getObject(), Color.RED); diff --git a/src/main/java/com/rarchives/ripme/ui/RipStatusMessage.java b/src/main/java/com/rarchives/ripme/ui/RipStatusMessage.java index bdd68e3b..462e00ac 100644 --- a/src/main/java/com/rarchives/ripme/ui/RipStatusMessage.java +++ b/src/main/java/com/rarchives/ripme/ui/RipStatusMessage.java @@ -10,6 +10,7 @@ public class RipStatusMessage { DOWNLOAD_STARTED("Download Started"), DOWNLOAD_COMPLETE("Download Complete"), DOWNLOAD_ERRORED("Download Errored"), + DOWNLOAD_COMPLETE_HISTORY("Download Complete History"), RIP_COMPLETE("Rip Complete"), DOWNLOAD_WARN("Download problem"), TOTAL_BYTES("Total bytes"),