MCPcopy Create free account
hub / github.com/RipMeApp/ripme / saveHistory

Method saveHistory

src/main/java/com/rarchives/ripme/ui/MainWindow.java:1306–1319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1304 }
1305
1306 private void saveHistory() {
1307 Path historyFile = Paths.get(Utils.getConfigDir() + "/history.json");
1308 try {
1309 if (!Files.exists(historyFile)) {
1310 Files.createDirectories(historyFile.getParent());
1311 Files.createFile(historyFile);
1312 }
1313
1314 HISTORY.toFile(historyFile.toString());
1315 Utils.setConfigList("download.history", Collections.emptyList());
1316 } catch (IOException e) {
1317 LOGGER.error("Failed to save history to file " + historyFile, e);
1318 }
1319 }
1320
1321 private void ripNextAlbum() {
1322 isRipping = true;

Callers 3

shutdownCleanupMethod · 0.95
setupHandlersMethod · 0.95
handleEventMethod · 0.95

Calls 6

getConfigDirMethod · 0.95
setConfigListMethod · 0.95
toFileMethod · 0.80
errorMethod · 0.80
getMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected