Skip to content
Permalink
Browse files

Fixed mini media player bug

  • Loading branch information
martonborzak committed Nov 21, 2019
1 parent 1465eed commit 2ba2647cf516be07969540d6739b01e8b9db1566
Showing with 7 additions and 13 deletions.
  1. +7 −0 MainContainer.qml
  2. +0 −13 basic_ui/MiniMediaPlayer.qml
@@ -201,6 +201,13 @@ Item {
miniMediaPlayerLoader.setSource("qrc:/basic_ui/MiniMediaPlayer.qml")
miniMediaPlayerLoader.active = true;
}

if (entities.mediaplayersPlaying.length === 0) {
loader_main.state = "visible";
miniMediaPlayer.height = 0;
miniMediaPlayer.miniMediaPlayerLoader.source = "";
miniMediaPlayer.miniMediaPlayerLoader.active = false;
}
}
}

@@ -71,19 +71,6 @@ Item {
}
}

Connections {
target: entities

onMediaplayersPlayingChanged: {
if (entities.mediaplayersPlaying.length == 0) {
loader_main.state = "visible";
loader_main.item.miniMediaPlayer.height = 0;
loader_main.item.miniMediaPlayer.miniMediaPlayerLoader.source = "";
loader_main.item.miniMediaPlayer.miniMediaPlayerLoader.active = false;
}
}
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CONNECT TO BUTTONS
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

0 comments on commit 2ba2647

Please sign in to comment.
You can’t perform that action at this time.