From 516eb31fb895622e2e3342d6e5beda240c306c98 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Tue, 25 Oct 2016 18:49:04 -0400 Subject: [PATCH] use get_pd_opendir instead of get_pwd for the open dialog --- pd/nw/index.js | 2 +- pd/nw/pd_canvas.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pd/nw/index.js b/pd/nw/index.js index d62d14e49..1cd5e01f1 100644 --- a/pd/nw/index.js +++ b/pd/nw/index.js @@ -364,7 +364,7 @@ function nw_create_pd_window_menus(gui, w) { style: "display: none;", type: "file", id: "fileDialog", - nwworkingdir: pdgui.get_pwd(), + nwworkingdir: pdgui.get_pd_opendir(), multiple: null, // These are copied from pd_filetypes in pdgui.js accept: ".pd,.pat,.mxt,.mxb,.help" diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js index e0af0309d..67f95c2a1 100644 --- a/pd/nw/pd_canvas.js +++ b/pd/nw/pd_canvas.js @@ -1141,7 +1141,7 @@ function nw_create_patch_window_menus(gui, w, name) { style: "display: none;", type: "file", id: "fileDialog", - nwworkingdir: pdgui.get_pwd(), + nwworkingdir: pdgui.get_pd_opendir(), multiple: null, // These are copied from pd_filetypes in pdgui.js accept: ".pd,.pat,.mxt,.mxb,.help" -- GitLab