Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

🐛 Disallow moving root directories - #601

Merged
kevinsawicki merged 3 commits into
atom:masterfrom
Tyriar:590_disallow_moving_root
Nov 10, 2015
Merged

kevinsawicki merged 3 commits into
atom:masterfrom
Tyriar:590_disallow_moving_root

Conversation

@Tyriar

@Tyriar Tyriar commented Oct 16, 2015

Copy link
Copy Markdown
Contributor

Moving a root directory can cause the tree view to become invalid as the
project remains but does not correctly map to a directory on the file system.
It also provides a bad UX as it's very easy to accidentally move a project
directory.

Fixes #590

Moving a root directory can cause the tree view to become invalid as the
project remains but does not correctly map to a directory on the file system.
It also provides a bad UX as it's very easy to accidentally move a project
directory.

Fixes #590
@Zireael07

Copy link
Copy Markdown

Thanks!

Comment thread spec/tree-view-spec.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not too familiar with these tests, but shouldn't draggable be false here?

@Tyriar

Tyriar commented Oct 16, 2015

Copy link
Copy Markdown
Contributor Author

@50Wliu good point, the test wasn't correct - I changed it to only set the draggable attribute if it's true.

kevinsawicki added a commit that referenced this pull request Nov 10, 2015
🐛 Disallow moving root directories
@kevinsawicki
kevinsawicki merged commit 697fbda into atom:master Nov 10, 2015
@kevinsawicki

Copy link
Copy Markdown
Contributor

Thanks for this 🚢

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants