mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-22 21:43:06 +02:00
file.separator only important when printing for windows shell
This commit is contained in:
@@ -1178,7 +1178,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void loadHistory() throws IOException {
|
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();
|
HISTORY.clear();
|
||||||
if (historyFile.exists()) {
|
if (historyFile.exists()) {
|
||||||
try {
|
try {
|
||||||
@@ -1214,7 +1214,7 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void saveHistory() {
|
private void saveHistory() {
|
||||||
Path historyFile = Paths.get(Utils.getConfigDir() + File.separator + "history.json");
|
Path historyFile = Paths.get(Utils.getConfigDir() + "/history.json");
|
||||||
try {
|
try {
|
||||||
if (!Files.exists(historyFile)) {
|
if (!Files.exists(historyFile)) {
|
||||||
Files.createDirectories(historyFile.getParent());
|
Files.createDirectories(historyFile.getParent());
|
||||||
|
Reference in New Issue
Block a user