When a file gets opened via command line, the editor now also checks if the file is already open.
This commit is contained in:
parent
01a451cc0b
commit
7cc65fb651
1 changed files with 1 additions and 1 deletions
2
utils.py
2
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue