diff --git a/menus/ffmpeg_missing.py b/menus/ffmpeg_missing.py index 0521f52..78a6d7c 100644 --- a/menus/ffmpeg_missing.py +++ b/menus/ffmpeg_missing.py @@ -39,8 +39,7 @@ class FFmpegMissing(arcade.gui.UIView): "--accept-source-agreements", "--accept-package-agreements" ], check=True) logging.debug("FFmpeg installed via winget.") - msgbox = self.add_widget(arcade.gui.UIMessageBox(message_text="You are on a Linux or Darwin based OS. You need to install FFmpeg, and libavcodec shared libraries from your package manager so it is in PATH.", width=self.window.width / 2, height=self.window.height / 2)) - msgbox.on_action = lambda: sys.exit() + sys.exit() return except subprocess.CalledProcessError as e: diff --git a/menus/main.py b/menus/main.py index f87a961..652d1af 100644 --- a/menus/main.py +++ b/menus/main.py @@ -464,6 +464,7 @@ class Main(arcade.gui.UIView): self.next_lyrics_label.text = '\n'.join([self.parsed_lyrics[next_lyrics_time] for next_lyrics_time in next_lyrics_times]) else: self.next_lyrics_label.text = '\n'.join(list(self.parsed_lyrics.values())[0:10]) + self.next_lyrics_label.fit_content() if self.should_reload: self.should_reload = False diff --git a/run.py b/run.py index 0a6da51..3ee6a31 100644 --- a/run.py +++ b/run.py @@ -97,10 +97,12 @@ arcade.set_background_color(menu_background_color) print_debug_info() if not pyglet.media.codecs.have_ffmpeg(): + logging.debug("FFmpeg is missing, opening FFmpeg popup...") from menus.ffmpeg_missing import FFmpegMissing menu = FFmpegMissing() elif not os.path.exists(get_fpcalc_path()): + logging.debug("fpcalc is missing, opening fpcalc popup...") from menus.fpcalc_missing import FpcalcMissing menu = FpcalcMissing()