Skip to content

Commit

Permalink
Small BUG Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WhatDamon committed Feb 8, 2024
1 parent f1ee8f8 commit 8b4f1f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def pickFileResult(e: ft.FilePickerResultEvent):
page.update()
logging.info("Page updated")
audioPathTemp = (
", ".join(map(lambda f: f.path, e.files))
", ".join(map(lambda f: f.path, e.files)) if e.files else None
)
global audioFile, lyricFile, firstPlay
if audioPathTemp == None:
Expand Down Expand Up @@ -210,11 +210,11 @@ def pickFileResult(e: ft.FilePickerResultEvent):
page.snack_bar = ft.SnackBar(ft.Text(value = lang.mainMenu["songLoaded"] + "\n" + audioArtistText+ " - " + audioTitleText))
page.snack_bar.open = True
logging.info("Snack Bar loaded - resetMenuBar")
page.splash = None
logging.info("Splash progress bar disabled")
page.update()
logging.info("Page updated")
logging.info("File picked")
page.splash = None
logging.info("Splash progress bar disabled")
page.update()
logging.info("Page updated")
logging.info("File picked")

pickFilesDialog = ft.FilePicker(on_result = pickFileResult)
page.overlay.append(pickFilesDialog)
Expand Down

0 comments on commit 8b4f1f5

Please sign in to comment.