mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
[widget] Require user interaction when picking files or folders v2
Now with extra sauce to make it work cross-platform and cross-versions and for HTML input elements only.
This commit is contained in:
parent
62df9eb775
commit
d867f26c0e
9 changed files with 34 additions and 9 deletions
|
|
@ -60,7 +60,8 @@ class nsFilePicker :
|
|||
public:
|
||||
nsFilePicker();
|
||||
|
||||
NS_IMETHOD Init(mozIDOMWindowProxy *aParent, const nsAString& aTitle, int16_t aMode);
|
||||
NS_IMETHOD Init(mozIDOMWindowProxy *aParent, const nsAString& aTitle, int16_t aMode,
|
||||
bool aRequireInteraction = false);
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
|
|
@ -125,6 +126,7 @@ protected:
|
|||
nsString mUnicodeFile;
|
||||
static char16_t *mLastUsedUnicodeDirectory;
|
||||
HWND mDlgWnd;
|
||||
bool mRequireInteraction;
|
||||
|
||||
class ComDlgFilterSpec
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue