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

File Manager does not copy after a cut. #203

Closed
RemiKoutcherawy opened this issue Sep 9, 2018 · 1 comment
Closed

File Manager does not copy after a cut. #203

RemiKoutcherawy opened this issue Sep 9, 2018 · 1 comment
Labels

Comments

@RemiKoutcherawy
Copy link
Contributor

After a Cut, File / Manage does not copy/paste but always cut/move
The button Copy works but when you paste a resource somewhere, it disappears from the original location.

To reproduce open File / Manage :
1/ Select a resource click on Cut
2/ Select a resource click on Copy
3/ Move to another collection then Paste
4/ Back to original collection, selected resource has disappeared, moved instead of copied.

The culprit is there

this.clipboardMode = "move";

A cut sets this.clipboardMode = "move"; then calls copy()
But when doing a Copy after a Cut, copy() never sets this.clipboardMode = "copy"; and performs "move"".
You cannot just add this.clipboardMode = "copy"; in copy() as it will break cut().

Related to #125

Here is a pull request #202

Rémi

@joewiz
Copy link
Member

joewiz commented Aug 30, 2019

Fixed by #225.

@joewiz joewiz closed this as completed Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants