Skip to content

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Feb 2, 2025

Fixes #2465

Sets target file to null when bookmark not mounted and not accepts drop of target_file if null.

NOTE: Ignore first commit - this solution is not reliable as the File property is_mounted returns false for local files at the moment. Better to rely on presence of mount object in bookmark.

@jeremypw jeremypw added the Good First Issue Easy fixed, with little code and no risk of side-effects label Feb 2, 2025
@jeremypw jeremypw marked this pull request as draft February 2, 2025 17:00
@jeremypw jeremypw marked this pull request as ready for review March 11, 2025 16:13
@jeremypw jeremypw requested a review from a team March 11, 2025 16:13
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

I guess this technically fixes the issue but I don't think this is the expected behavior. It seems like the expectation is that the drive would be mounted so that the drop operation succeeds.

If that's significantly more difficult, I can see this as like a hotfix, but I don't think it really solves the problem as far as giving the intended result

@jeremypw jeremypw marked this pull request as draft March 12, 2025 16:29
@jeremypw
Copy link
Collaborator Author

@danirabbit Fair enough - I'll work on automounting. I note that there is one issue that this does completely fix? Are you willing to merge on that basis and I'll submit a further PR in due course?

@jeremypw jeremypw removed the Good First Issue Easy fixed, with little code and no risk of side-effects label Mar 12, 2025
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

Yeah, I'm okay with merging this for now! Sorry I thought I left an "approve" comment. Should I open an issue report about mounting for a drop operation?

@jeremypw jeremypw changed the title Jeremypw/fix drop on unmounted Jeremypw/fix drop on mounted after start Mar 12, 2025
@jeremypw jeremypw changed the title Jeremypw/fix drop on mounted after start Fix drop on mounted after start Mar 12, 2025
@jeremypw
Copy link
Collaborator Author

I've left a comment on #2390 making it clear that the mount should be automounted so I do not think another report is required.

@jeremypw jeremypw marked this pull request as ready for review March 12, 2025 19:19
@jeremypw jeremypw enabled auto-merge (squash) March 12, 2025 19:19
@jeremypw jeremypw merged commit fa3692e into main Mar 12, 2025
4 checks passed
@jeremypw jeremypw deleted the jeremypw/fix-drop-on-unmounted branch March 12, 2025 19:21
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.

Dropping onto mountable bookmark does not work correctly if location mounted after Files starts
3 participants