From 7cc65fb651f04c7b22afef62b7d5e201f7a1edea Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Sun, 8 Dec 2024 15:17:46 +0100 Subject: [PATCH] When a file gets opened via command line, the editor now also checks if the file is already open. --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 24a2fe3..0e7c8bd 100644 --- a/utils.py +++ b/utils.py @@ -126,7 +126,7 @@ class Utils: def load_files(self, file_paths): for file_path in file_paths: - if os.path.isfile(file_path): + if not file_path in self.app.open_files and os.path.isfile(file_path): file = File(self.app, file_path, file_path.split("/")[-1]) self.app.open_files[file_path] = file