[vlc-devel] [PATCH 11/49] qml: don't display the progres bar in video view when the progress is 0
Pierre Lamot
pierre at videolabs.io
Fri Oct 11 15:17:35 CEST 2019
---
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
--
2.20.1
More information about the vlc-devel
mailing list