From af64e339202814ea518b5cb3f5ea32d246af85d6 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sun, 26 Nov 2017 15:44:19 -0500 Subject: [PATCH] Fixed autorip from clipboard checkbox listener --- src/main/java/com/rarchives/ripme/ui/MainWindow.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index fea01d1b..68e70019 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -737,10 +737,16 @@ public final class MainWindow implements Runnable, RipStatusHandler { addCheckboxListener(configSaveURLsOnly, "urls_only.save"); addCheckboxListener(configURLHistoryCheckbox, "remember.url_history"); addCheckboxListener(configSaveAlbumTitles, "album_titles.save"); - addCheckboxListener(configClipboardAutorip, "clipboard.autorip"); addCheckboxListener(configSaveDescriptions, "descriptions.save"); addCheckboxListener(configPreferMp4, "prefer.mp4"); addCheckboxListener(configWindowPosition, "window.position"); + + configClipboardAutorip.addActionListener(arg0 -> { + Utils.setConfigBoolean("clipboard.autorip", configClipboardAutorip.isSelected()); + ClipboardUtils.setClipboardAutoRip(configClipboardAutorip.isSelected()); + trayMenuAutorip.setState(configClipboardAutorip.isSelected()); + Utils.configureLogger(); + }); queueListModel.addListDataListener(new ListDataListener() { @Override