Skip to content

Commit

Permalink
Update topbar.py Testing Line 47 for errors
Browse files Browse the repository at this point in the history
Signed-off-by: David Sage <[email protected]>
  • Loading branch information
DavidDragonsage authored Feb 8, 2025
1 parent a15a3f1 commit 443ac3e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions enhanced/topbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@

def get_welcome_image():
path_welcome = os.path.abspath(f'./enhanced/attached/')
welcomes = [p for p in util.get_files_from_folder(path_welcome, ['.jpg', '.jpeg'], None, None) if p != 'welcome.jpg']
if len(welcomes)>0:
file_welcome = random.choice(welcomes)
else:
file_welcome = os.path.join(path_welcome, 'welcome.jpg')
# welcomes = [p for p in util.get_files_from_folder(path_welcome, ['.jpg', '.jpeg'], None, None) if p != 'welcome.jpg']
# if len(welcomes)>0:
# file_welcome = random.choice(welcomes)
# else:
file_welcome = os.path.join(path_welcome, 'welcome.png')
return file_welcome

def get_preset_name_list():
Expand Down

0 comments on commit 443ac3e

Please sign in to comment.