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

shell: fix regression for moveItemToTrash on mac #1387

Merged
merged 1 commit into from
Apr 13, 2015

Conversation

deepak1556
Copy link
Member

fixes #1385 , sorry my bad.

@@ -140,7 +140,7 @@ bool MoveItemToTrash(const base::FilePath& full_path) {
if (!path_string || !file_array || !status)
LOG(WARNING) << "NSWorkspace failed to move file " << full_path.value()
<< " to trash";
return (status == 0);
return (!!status);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should just use BOOL for status's type.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks!

zcbenz added a commit that referenced this pull request Apr 13, 2015
shell: fix regression for moveItemToTrash on mac
@zcbenz zcbenz merged commit eddb23d into electron:master Apr 13, 2015
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

Successfully merging this pull request may close these issues.

Shell.moveItemToTrash returns false if operation suceeds and true otherwise on mac
2 participants