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 | 8f663e3bcd14cb2a6a25771f51620233f276ec05 (patch) | |
tree | 1a37c3bbc51834ade0499174f4b83f5df827c464 /widget | |
parent | 9fa7943937dfef58698f9955697509e6d649522f (diff) | |
download | uxp-8f663e3bcd14cb2a6a25771f51620233f276ec05.tar.gz |
[widget] Require user interaction when picking files or folders.
Diffstat (limited to 'widget')
-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 53824b93fd..78656165d9 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) { |