summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-02-15 21:09:05 +0000
committerMoonchild <moonchild@palemoon.org>2021-02-15 21:09:05 +0000
commit7091ca8d58b52909781cc67f423cb192cf942ac6 (patch)
tree1a37c3bbc51834ade0499174f4b83f5df827c464
parent8c8156742e1b9a2173b3001b211785729844309a (diff)
downloadaura-central-7091ca8d58b52909781cc67f423cb192cf942ac6.tar.gz
[widget] Require user interaction when picking files or folders.
-rw-r--r--widget/windows/nsFilePicker.cpp4
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) {