Browse Source

fix: incorrect default path setting for dl items (#17797)

trop[bot] 6 years ago
parent
commit
900feef89f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atom/browser/atom_download_manager_delegate.cc

+ 1 - 1
atom/browser/atom_download_manager_delegate.cc

@@ -111,7 +111,7 @@ void AtomDownloadManagerDelegate::OnDownloadPathGenerated(
       settings.parent_window = window;
     if (settings.title.size() == 0)
       settings.title = item->GetURL().spec();
-    if (!settings.default_path.empty())
+    if (settings.default_path.empty())
       settings.default_path = default_path;
 
     auto* web_preferences = WebContentsPreferences::From(web_contents);