Skip to content

Commit

Permalink
Fix trash positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd committed Aug 5, 2024
1 parent 056a159 commit 18d4539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def add_item(self, path, is_directory):
try:
settings = json.load(file)
for item in settings["items"]:
if item["name"] == robust_filename(path):
if item["name"].replace("$Recycle.Bin", app.trash_name) == robust_filename(path):
position = QPoint(item["x"], item["y"])
except json.JSONDecodeError as e:
print(f"Error reading settings file: {e}")
Expand Down

0 comments on commit 18d4539

Please sign in to comment.