Browse Source

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

Shelley Vohr 6 years ago
parent
commit
82a076855b
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

@@ -113,7 +113,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);