mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: incorrect default path setting for dl items (#17773)
This commit is contained in:
committed by
Samuel Attard
parent
258d337cf8
commit
82a076855b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user