aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-05-31 23:18:37 +0200
committerdec05eba <dec05eba@protonmail.com>2020-05-31 23:18:37 +0200
commit5649ea29b8f63965ac546846a0963f709f6786b7 (patch)
treeb9f274a643cf6009b88cbb316af70ecd1ebe615c
parentbb034d19470e9432547634b3dccc6d6455a68c51 (diff)
Fix cookie path
-rw-r--r--src/plugins/Mangadex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp
index 18648be..3518d4a 100644
--- a/src/plugins/Mangadex.cpp
+++ b/src/plugins/Mangadex.cpp
@@ -115,12 +115,12 @@ namespace QuickMedia {
}
static bool get_cookie_filepath(std::string &cookie_filepath) {
- Path cookie_path = get_storage_dir().join("cookies").join("mangadex.txt");
+ Path cookie_path = get_storage_dir().join("cookies");
if(create_directory_recursive(cookie_path) != 0) {
show_notification("Storage", "Failed to create directory: " + cookie_path.data, Urgency::CRITICAL);
return false;
}
- cookie_filepath = cookie_path.data;
+ cookie_filepath = cookie_path.join("mangadex.txt").data;
return true;
}