Skip to content

Conversation

soumyamahunt
Copy link
Contributor

@soumyamahunt soumyamahunt commented Jul 25, 2020

Fixes #1049.

3JyxBbHifS

@ghost ghost added the needs - code review label Jul 25, 2020
@yaira2 yaira2 self-requested a review July 26, 2020 02:42
@yaira2 yaira2 added changes requested Changes are needed for this pull request and removed needs - code review labels Jul 26, 2020
@soumyamahunt
Copy link
Contributor Author

can you make them highlight when you drag over an item?
like this:
highlight

I haven't been able to do that, would you like to have a crack at this??

@soumyamahunt
Copy link
Contributor Author

@xpoppyx @yaichenbaum reveal effect is now implemented:

3nIQIFjjps

@yaira2 yaira2 removed the changes requested Changes are needed for this pull request label Jul 28, 2020
yaira2
yaira2 previously approved these changes Jul 28, 2020
@yaira2 yaira2 requested a review from tsvietOK July 28, 2020 22:32
@tsvietOK
Copy link
Contributor

Why there is different actions for some folders?

@soumyamahunt
Copy link
Contributor Author

Why there is different actions for some folders?

I have implemented different actions based on Windows Explorer. In Windows Explorer, if the item you are dragging is in the same drive as the destination folder the operation will be to move the item otherwise the item will be copied.

Copy link
Contributor

@tsvietOK tsvietOK left a comment

Choose a reason for hiding this comment

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

Can't move or copy file. App crashing when drop file on side bar item.

2020-07-29 15:31:44.3932|ERROR|Files.App|Object reference not set to an instance of an object.|System.NullReferenceException: Object reference not set to an instance of an object.
   at Files.Interacts.Interaction.PasteItems(DataPackageView packageView, String destinationPath, DataPackageOperation acceptedOperation)
   at Files.Controls.SidebarControl.NavigationViewLocationItem_Drop(Object sender, DragEventArgs e)
   at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()

image

@soumyamahunt
Copy link
Contributor Author

Can't move or copy file. App crashing when drop file on side bar item.

2020-07-29 15:31:44.3932|ERROR|Files.App|Object reference not set to an instance of an object.|System.NullReferenceException: Object reference not set to an instance of an object.
   at Files.Interacts.Interaction.PasteItems(DataPackageView packageView, String destinationPath, DataPackageOperation acceptedOperation)
   at Files.Controls.SidebarControl.NavigationViewLocationItem_Drop(Object sender, DragEventArgs e)
   at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()

image

Can you share more detail on what you were trying to copy and to what path??

@tsvietOK
Copy link
Contributor

@soumyamahunt
image

@soumyamahunt
Copy link
Contributor Author

soumyamahunt commented Jul 29, 2020

@tsvietOK Does the error happen to you always?? I can't seem to reproduce it. Also the exception seems to be related to StatusBarControl and I haven't made any changes to it in this pr.

@tsvietOK
Copy link
Contributor

I don't think it is a good idea to cancel user action (copy or move) if item already exists in folder.

@soumyamahunt
Copy link
Contributor Author

soumyamahunt commented Jul 29, 2020

I don't think it is a good idea to cancel user action (copy or move) if item already exists in folder.

What do you think should be the default behaviour?? Currently if the item is already present in the folder, when dragging over the same folder the glyph would prompt the user it cannot be dropped. This is the implemented behaviour in every drag-drop scenario app wide.

i1hRQ0ewGo

@tsvietOK
Copy link
Contributor

Oh, sorry, I misunderstood you. All ok.

@soumyamahunt
Copy link
Contributor Author

Oh, sorry, I misunderstood you. All ok.

What about the exception?? Are you still getting it??

@tsvietOK
Copy link
Contributor

It is strange, but now i can't reproduce this issue anymore.

@soumyamahunt
Copy link
Contributor Author

It is strange, but now i can't reproduce this issue anymore.

I think it is related to StatusBarControl, not this pr.

@soumyamahunt soumyamahunt requested a review from yaira2 July 29, 2020 14:22
@yaira2 yaira2 added the ready to merge Pull requests that are approved and ready to merge label Jul 29, 2020
@yaira2 yaira2 merged commit 88e6747 into files-community:master Jul 29, 2020
@soumyamahunt soumyamahunt deleted the sidebar-dragdrop branch July 29, 2020 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possibility to drag and drop files into the sidebar
3 participants