diff options
author | Moonchild <moonchild@palemoon.org> | 2021-02-15 21:09:05 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-02-15 21:09:05 +0000 |
commit | 7091ca8d58b52909781cc67f423cb192cf942ac6 (patch) | |
tree | 1a37c3bbc51834ade0499174f4b83f5df827c464 | |
parent | 8c8156742e1b9a2173b3001b211785729844309a (diff) | |
download | aura-central-7091ca8d58b52909781cc67f423cb192cf942ac6.tar.gz |
[widget] Require user interaction when picking files or folders.
-rw-r--r-- | widget/windows/nsFilePicker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/windows/nsFilePicker.cpp b/widget/windows/nsFilePicker.cpp index 53824b93f..78656165d 100644 --- a/widget/windows/nsFilePicker.cpp +++ b/widget/windows/nsFilePicker.cpp @@ -360,7 +360,7 @@ nsFilePicker::ShowFolderPicker(const nsString& aInitialDir) dialog->Advise(this, &mFDECookie); // options - FILEOPENDIALOGOPTIONS fos = FOS_PICKFOLDERS; + FILEOPENDIALOGOPTIONS fos = FOS_PICKFOLDERS | FOS_OKBUTTONNEEDSINTERACTION; dialog->SetOptions(fos); // initial strings @@ -459,7 +459,7 @@ nsFilePicker::ShowFilePicker(const nsString& aInitialDir) FILEOPENDIALOGOPTIONS fos = 0; fos |= FOS_SHAREAWARE | FOS_OVERWRITEPROMPT | - FOS_FORCEFILESYSTEM; + FOS_FORCEFILESYSTEM | FOS_OKBUTTONNEEDSINTERACTION; // Handle add to recent docs settings if (IsPrivacyModeEnabled() || !mAddToRecentDocs) { |