fix: destroy charts when switching tabs
This commit is contained in:
parent
bf09af6b5e
commit
297c913f2a
7 changed files with 22 additions and 18 deletions
|
@ -61,7 +61,9 @@ try:
|
|||
suffix = match.group(1)
|
||||
number = int(suffix.lstrip(".")) if suffix else 0
|
||||
log_files.append((number, os.path.join(LOG_DIR, f)))
|
||||
log_files = [path for _, path in sorted(log_files, key=lambda x: x[0], reverse=True)]
|
||||
log_files = [
|
||||
path for _, path in sorted(log_files, key=lambda x: x[0], reverse=True)
|
||||
]
|
||||
except FileNotFoundError:
|
||||
print(f"[ERROR] Log directory not found: {LOG_DIR}")
|
||||
exit(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue