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

Fix incorrect playlist item moved to trash (issue #4061) #4118

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

svobs
Copy link
Contributor

@svobs svobs commented Dec 5, 2022


Description:
In Playlist context menu, Move to Trash was removing the item from the playlist before getting the filename from it, which resulted in either the incorrect file being sent to trash, or IINA crashing. Changed so that it first attempts to move each file to the trash, and only removes from the playlist at the end, and only removes the ones were successfully trashed.

@svobs svobs changed the title Fix incorrect playlist item moved to trash (issue #4061) + context menu build opitmizations Fix incorrect playlist item moved to trash (issue #4061) + context menu build optimizations Dec 5, 2022
@uiryuu
Copy link
Member

uiryuu commented Dec 7, 2022

Please split your commits into multiple PRs next time, thanks!

@svobs svobs force-pushed the pr-playlist-move-to-trash-fix branch from e2b42cb to f2896b2 Compare March 28, 2023 07:38
@svobs svobs force-pushed the pr-playlist-move-to-trash-fix branch from f2896b2 to 0d9d153 Compare March 28, 2023 07:39
@svobs
Copy link
Contributor Author

svobs commented Mar 28, 2023

Updated the code to remove everything except the bug fix

@svobs svobs changed the title Fix incorrect playlist item moved to trash (issue #4061) + context menu build optimizations Fix incorrect playlist item moved to trash (issue #4061) Mar 28, 2023
@svobs
Copy link
Contributor Author

svobs commented Apr 3, 2023

Hopefully this can make it into the next release? This is a serious bug because it can result in unexpected loss of user data, and this fix is not too complicated. Attn @uiryuu

@uiryuu
Copy link
Member

uiryuu commented Apr 4, 2023

Thanks for reminding. Rest assured, this will definitely go into the next release.

@low-batt low-batt linked an issue Apr 4, 2023 that may be closed by this pull request
@uiryuu uiryuu merged commit b1bdc0b into iina:develop Apr 6, 2023
2 checks passed
@uiryuu
Copy link
Member

uiryuu commented Apr 6, 2023

Thanks!

@jiripospisil
Copy link

Thanks for reminding. Rest assured, this will definitely go into the next release.

@uiryuu Is there an ETA for the new release? This bug is bad enough to warrant a quick patch release on its own. Thanks.

@uiryuu
Copy link
Member

uiryuu commented May 29, 2023

@jiripospisil We are building the dependencies for the new release. Should be soon, but no eta still.

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.

File matching in playlist is wrong when video/audio mixed.
3 participants