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

Revert removal of shell.moveItemToTrash #1125

Conversation

savetheclocktower
Copy link
Contributor

…since it doesn’t work in Electron 12 on Windows.

This reverts #1109 and should restore the status quo ante. I'd appreciate a review from a Windows user just to make certain; but if the tests pass, this should be safe to land.

The new method (shell.trashItem) seems to work fine in PulsarNext, even on Windows. So instead of backporting this fix we'll just wait and fix it when we upgrade. (This was my first backport; how predictable that it'd backfire like this!)

…since it doesn’t work in Electron 12 on Windows.

(Seems to work fine in Electron 30, so we'll just wait until the upgrade to migrate this usage.)
@savetheclocktower savetheclocktower linked an issue Oct 30, 2024 that may be closed by this pull request
5 tasks
Copy link
Member

@DeeDeeG DeeDeeG left a comment

Choose a reason for hiding this comment

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

I can confirm that, in my testing, this fixes the described scenario with steps to reproduce from #1123.

CI seems happy other than the one known failing test we've had since merging #917.

So, LGTM! Thanks for the fix!

@savetheclocktower savetheclocktower merged commit 6e2674c into pulsar-edit:master Nov 5, 2024
102 of 103 checks passed
@savetheclocktower savetheclocktower deleted the revert-tree-view-trash-item branch November 5, 2024 00:13
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.

[pulsar-next] shell.trashItem fails on Windows
2 participants