Skip to content

Commit

Permalink
Change file deletion icon to trashcan
Browse files Browse the repository at this point in the history
The red X was scary and implied failure
  • Loading branch information
frossie authored and jonathansick committed Jan 2, 2024
1 parent df87f70 commit 0420895
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.d/20240102_155845_jsick_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Bug fixes

- In `documenteer technote migrate`, change the icon for a file deletion event from ❌ to 🗑️.
4 changes: 2 additions & 2 deletions src/documenteer/services/technotemigration.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ def _delete_file(self, path: Path) -> None:
"""Delete a file."""
if path.exists():
path.unlink()
print(f" {path}")
print(f"🗑️ {path}")

def _delete_directory(self, path: Path) -> None:
"""Delete a directory."""
if path.exists():
shutil.rmtree(path)
print(f" {path}")
print(f"🗑️ {path}")

0 comments on commit 0420895

Please sign in to comment.