Fixed title now visible on first startup
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user