Commit ae0617c0 authored by Albert Gräf's avatar Albert Gräf
Browse files

Defunkify Windows pathnames in the add-recent-file FUDI message. Fixes #247.

parent ce94500a
......@@ -735,7 +735,7 @@ function saveas_callback(cid, file, close_flag) {
set_pd_opendir(directory);
// update the recent files list
var norm_path = path.normalize(directory);
pdsend("pd add-recent-file", enquote(path.join(norm_path, basename)));
pdsend("pd add-recent-file", enquote(defunkify_windows_path(path.join(norm_path, basename))));
}
exports.saveas_callback = saveas_callback;
......@@ -1033,7 +1033,7 @@ function process_file(file, do_open) {
//::pd_guiprefs::update_recentfiles "$filename" 1
// update the recent files list
var norm_path = path.normalize(directory);
pdsend("pd add-recent-file", enquote(path.join(norm_path, basename)));
pdsend("pd add-recent-file", enquote(defunkify_windows_path(path.join(norm_path, basename))));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment