Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openAndAddToRecent(String path) returns false if the file was opened successfully #177

Closed
ksugar opened this issue Sep 26, 2022 · 1 comment

Comments

@ksugar
Copy link

ksugar commented Sep 26, 2022

ij.io.Opener.openAndAddToRecent(String path) returns false if the file was opened successfully, but the documentation says the opposite.

ImageJ/ij/io/Opener.java

Lines 307 to 314 in d9d056a

/** Opens the specified file and adds it to the File/Open Recent menu.
Returns true if the file was opened successfully. */
public boolean openAndAddToRecent(String path) {
open(path);
if (!error)
Menus.addOpenRecentItem(path);
return error;
}

@ksugar ksugar changed the title openAndAddToRecent(String path) returns false if the file was opened successfully openAndAddToRecent(String path) returns false if the file was opened successfully Sep 26, 2022
@rasband rasband closed this as completed Sep 27, 2022
@rasband
Copy link
Member

rasband commented Sep 27, 2022

This fix is in the ImageJ 1.53u33 daily build. The commit is at 3968bc5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants