Enhancing core features

This commit is contained in:
Mr Finchum 2024-12-27 20:55:20 +00:00
parent ba505ab382
commit e287f35240
8 changed files with 185 additions and 102 deletions

View file

@ -9,7 +9,6 @@ class Utilities:
with open(yaml_file, "r") as file:
data = yaml.safe_load(file)
return data
except (FileNotFoundError, PermissionError) as e:
print(f"Error loading settings file: {e}")
return
@ -18,7 +17,6 @@ class Utilities:
try:
with open(yaml_file, "w") as file:
yaml.dump(data, file)
except PermissionError as e:
print(f"Error saving setings: {e}")
@ -41,7 +39,6 @@ class Utilities:
progress = int((barsize / total) * current)
rest = barsize - progress
if rest <= 2: rest = 0
# Determine the number of digits in total
total_digits = len(str(total))
# Format current with leading zeros