From 0f8672eb9992fad889640c859a65e05b64442bce Mon Sep 17 00:00:00 2001 From: tao wang Date: Thu, 23 Feb 2023 14:15:48 +0800 Subject: [PATCH] FIX:use default download dir when the download path does not exist Change-Id: Ie1a341caa9803b8cd121fac4fe20c0f3d6fcf3fa --- src/slic3r/GUI/GUI_App.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index cfd422f0a1..b4a63f071a 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -1878,10 +1878,8 @@ void GUI_App::init_download_path() fs::path dp(down_path); if (!fs::exists(dp)) { - if (!fs::create_directory(dp)) { - std::string user_down_path = wxStandardPaths::Get().GetUserDir(wxStandardPaths::Dir_Downloads).ToUTF8().data(); - app_config->set("download_path", user_down_path); - } + std::string user_down_path = wxStandardPaths::Get().GetUserDir(wxStandardPaths::Dir_Downloads).ToUTF8().data(); + app_config->set("download_path", user_down_path); } } }