Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gabriela Bittencourt
purr-data
Commits
35373cf7
Commit
35373cf7
authored
Sep 23, 2020
by
Ivica Bukvic
Browse files
Fixes openpanel unable to open a custom path on windows
*Addresses issue
#449
parent
c4495143
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
35373cf7
...
...
@@ -5668,6 +5668,9 @@ function file_dialog(cid, type, target, start_path) {
// it just doesn't work. So this requires us to have the parent <span>
// around the <input>. Then when we change the innerHTML of the span the
// new value for nwworkingdir magically works.
if
(
nw_os_is_windows
)
{
start_path
=
start_path
.
replace
(
/
\/
/g
,
'
\\
'
);
}
dialog_options
=
{
style
:
"
display: none;
"
,
type
:
"
file
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment