Open arshubham opened 6 years ago
Never use a warning when you mean "Undo" ;)
Ok, I meant a message dialog to warn user they are about to move a project to trash
Over-using warnings is kind of a habit-forming anti-pattern. Check out this article: http://alistapart.com/article/neveruseawarning
I understand but a better option here could be to close the project instead of moving it to the trash. For example vscode or atom don't allow deleting the project.
Code shouldn't act as file manager
Don't allow moving project folder to trash or at least throw a warning. The reason is if the project folder is removed and trash is emptied later, there is no way to restore the contents. Within a project this can be mitigated by using git but removing the entire project removes .git directory making it impossible.