restructure code to use web_preferences if possible
This commit is contained in:
parent
cafb9477b0
commit
f8b3009ebf
16 changed files with 88 additions and 47 deletions
|
@ -92,6 +92,7 @@ void AtomDownloadManagerDelegate::OnDownloadPathGenerated(
|
|||
// Show save dialog if save path was not set already on item
|
||||
file_dialog::DialogSettings settings;
|
||||
settings.parent_window = window;
|
||||
settings.force_detached = window->IsOffScreenDummy();
|
||||
settings.title = item->GetURL().spec();
|
||||
settings.default_path = default_path;
|
||||
if (path.empty() && file_dialog::ShowSaveDialog(settings, &path)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue