[vlc-commits] qml: don't display the progres bar in video view when the progress is 0
Pierre Lamot
git at videolan.org
Mon Oct 14 11:59:07 CEST 2019
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Tue Sep 24 16:04:00 2019 +0200| [9eee0fc61bb8bf267f2d2301ec65e7716a679bb5] | committer: Jean-Baptiste Kempf
qml: don't display the progres bar in video view when the progress is 0
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9eee0fc61bb8bf267f2d2301ec65e7716a679bb5
---
modules/gui/qt/qml/mediacenter/MCVideoListDisplay.qml | 3 ++-
modules/gui/qt/qml/utils/GridItem.qml | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/qml/mediacenter/MCVideoListDisplay.qml b/modules/gui/qt/qml/mediacenter/MCVideoListDisplay.qml
index 63689f5f80..cc16a944cd 100644
--- a/modules/gui/qt/qml/mediacenter/MCVideoListDisplay.qml
+++ b/modules/gui/qt/qml/mediacenter/MCVideoListDisplay.qml
@@ -86,7 +86,8 @@ Utils.KeyNavigableTableView {
color: "limegreen"
}
Utils.VideoProgressBar {
- value: !rowModel ? "" : rowModel.saved_position
+ value: !rowModel ? 0 : rowModel.saved_position
+ visible: value > 0
anchors {
bottom: parent.bottom
left: parent.left
diff --git a/modules/gui/qt/qml/utils/GridItem.qml b/modules/gui/qt/qml/utils/GridItem.qml
index 16079268c9..755694df61 100644
--- a/modules/gui/qt/qml/utils/GridItem.qml
+++ b/modules/gui/qt/qml/utils/GridItem.qml
@@ -117,7 +117,7 @@ Rectangle {
VideoProgressBar {
value: root.progress
- visible: isVideo
+ visible: isVideo && root.progress > 0
anchors {
bottom: parent.bottom
left: parent.left
More information about the vlc-commits
mailing list