From 5649ea29b8f63965ac546846a0963f709f6786b7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 31 May 2020 23:18:37 +0200 Subject: Fix cookie path --- src/plugins/Mangadex.cpp | 4 ++-- 1 file 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; } -- cgit v1.2.3