Added horizontal line between runs

This commit is contained in:
GeoffreyCoulaud
2023-06-29 17:39:52 +02:00
parent e4b315f252
commit 299333c959

View File

@@ -145,7 +145,11 @@ class CartridgesApplication(Adw.Application):
def on_about_action(self, *_args):
# Get the debug info from the log files
debug_str = ""
for path in shared.log_files:
for i, path in enumerate(shared.log_files):
# Add a horizontal line between runs
if i > 0:
debug_str += "" * 37 + "\n"
# Add the run's logs
log_file = (
lzma.open(path, "rt", encoding="utf-8")
if path.name.endswith(".xz")