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