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

Change opendir to the last directory we saved in, so that a subsequent Open...

Change opendir to the last directory we saved in, so that a subsequent Open shows that directory again.
parent 172416dd
......@@ -741,6 +741,8 @@ function saveas_callback(cid, file, close_flag) {
}
pdsend(cid, "savetofile", enquote(basename), enquote(directory),
close_flag);
// XXXREVIEW: It seems sensible that we also switch the opendir here. -ag
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)));
......
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