Overwrite config is set immediately

This commit is contained in:
4pr0n 2014-05-25 20:10:49 -07:00
parent 7beb6a402d
commit 5e3d4ae044
2 changed files with 6 additions and 1 deletions

View File

@ -481,6 +481,12 @@ public class MainWindow implements Runnable, RipStatusHandler {
Utils.setConfigString("rips.directory", chosenPath); Utils.setConfigString("rips.directory", chosenPath);
} }
}); });
configOverwriteCheckbox.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
Utils.setConfigBoolean("file.overwrite", configOverwriteCheckbox.isSelected());
}
});
} }
private void setupTrayIcon() { private void setupTrayIcon() {

View File

@ -12,7 +12,6 @@ import org.apache.log4j.Logger;
import org.jsoup.Jsoup; import org.jsoup.Jsoup;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import com.rarchives.ripme.ripper.AbstractRipper; import com.rarchives.ripme.ripper.AbstractRipper;
import com.rarchives.ripme.ripper.rippers.ImgurRipper; import com.rarchives.ripme.ripper.rippers.ImgurRipper;