diff --git a/spatial.py b/spatial.py index de0bb4a..a898c7e 100644 --- a/spatial.py +++ b/spatial.py @@ -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}")