Fixed title now visible on first startup

This commit is contained in:
jmb05
2026-11-01 16:59:03 +01:00
parent 957a53fd8c
commit 87d27f9734

View File

@@ -40,11 +40,9 @@ pub fn build() -> Button {
pub fn manage_title(button_opt: &Option<Button>, player_opt: &Option<Player>) {
let mut handled = false;
if let Some(button) = button_opt
&& let Some(player) = player_opt
{
//println!("{:?}", player.get_playback_status());
if let Ok(status) = player.get_playback_status()
if let Some(button) = button_opt {
if let Some(player) = player_opt
&& let Ok(status) = player.get_playback_status()
&& let Ok(metadata) = player.get_metadata()
{
match status {