From 18d4539974657af020d5062df21007e9fd0ea28f Mon Sep 17 00:00:00 2001 From: probonopd Date: Mon, 5 Aug 2024 18:27:41 +0200 Subject: [PATCH] Fix trash positioning --- spatial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")