Implemented opening of multiple files via command line arguments.

This commit is contained in:
The Wobbler 2024-12-07 22:09:23 +01:00
parent bce4cff103
commit 5e3354fa22

View file

@ -120,11 +120,9 @@ class Utils:
self.load_files(self.app.settings.last_opened_files)
else:
file_path = sys.argv[1]
file_paths = sys.argv[1:]
if os.path.isfile(file_path):
file = File(self.app, file_path, file_path.split("/")[-1])
self.app.open_files[file_path] = file
self.load_files(file_paths)
def load_files(self, file_paths):
for file_path in file_paths: