1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-21 13:11:27 +02:00

file.separator only important when printing for windows shell

This commit is contained in:
soloturn
2022-04-22 08:47:07 +02:00
parent f728bed5d2
commit bfc915e57d

View File

@@ -1178,7 +1178,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
}
private void loadHistory() throws IOException {
File historyFile = new File(Utils.getConfigDir() + File.separator + "history.json");
File historyFile = new File(Utils.getConfigDir() + "/history.json");
HISTORY.clear();
if (historyFile.exists()) {
try {
@@ -1214,7 +1214,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
}
private void saveHistory() {
Path historyFile = Paths.get(Utils.getConfigDir() + File.separator + "history.json");
Path historyFile = Paths.get(Utils.getConfigDir() + "/history.json");
try {
if (!Files.exists(historyFile)) {
Files.createDirectories(historyFile.getParent());