From f6730f34ac2a4ddc997881de061a6066b85ce559 Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Tue, 8 Apr 2014 00:55:26 -0700 Subject: [PATCH] Fixed clipboard autorip bug in #11 --- pom.xml | 2 +- src/main/java/com/rarchives/ripme/ui/ClipboardUtils.java | 2 +- src/main/java/com/rarchives/ripme/ui/MainWindow.java | 1 - src/main/java/com/rarchives/ripme/ui/UpdateUtils.java | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index cbbb3f5d..9c1e158e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.rarchives.ripme ripme jar - 1.0.11 + 1.0.12 ripme http://rip.rarchives.com diff --git a/src/main/java/com/rarchives/ripme/ui/ClipboardUtils.java b/src/main/java/com/rarchives/ripme/ui/ClipboardUtils.java index c6c3cbf4..883336a1 100644 --- a/src/main/java/com/rarchives/ripme/ui/ClipboardUtils.java +++ b/src/main/java/com/rarchives/ripme/ui/ClipboardUtils.java @@ -45,7 +45,7 @@ public class ClipboardUtils { } class AutoripThread extends Thread { - public volatile boolean isRunning = false; + protected volatile boolean isRunning = false; Set rippedURLs = new HashSet(); public void run() { diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index 0a3b31e5..a7cacb7c 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -162,7 +162,6 @@ public class MainWindow implements Runnable, RipStatusHandler { Utils.setConfigBoolean("auto.update", configAutoupdateCheckbox.isSelected()); saveHistory(); Utils.saveConfig(); - ClipboardUtils.setClipboardAutoRip(false); } private void status(String text) { diff --git a/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java b/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java index b1977525..24f9a6ae 100644 --- a/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java +++ b/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java @@ -17,7 +17,7 @@ import org.jsoup.nodes.Document; public class UpdateUtils { private static final Logger logger = Logger.getLogger(UpdateUtils.class); - private static final String DEFAULT_VERSION = "1.0.11"; + private static final String DEFAULT_VERSION = "1.0.12"; private static final String updateJsonURL = "http://rarchives.com/ripme.json"; private static final String updateJarURL = "http://rarchives.com/ripme.jar"; private static final String mainFileName = "ripme.jar";