diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-05-31 23:18:37 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-05-31 23:18:37 +0200 |
commit | 5649ea29b8f63965ac546846a0963f709f6786b7 (patch) | |
tree | b9f274a643cf6009b88cbb316af70ecd1ebe615c /src/plugins | |
parent | bb034d19470e9432547634b3dccc6d6455a68c51 (diff) |
Fix cookie path
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Mangadex.cpp | 4 |
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; } |