fix(qml): drop the CastPicker quality height binding loop

cc
This commit is contained in:
vicrodh committed 2026-08-29 15:31:20 -06:00
1 parent 51f2803f95
commit ba6273a5f1
1 file changed
+4 -1
+4 -1
View File
@@ -289,7 +289,10 @@ Popup {
Text { Text {
visible: QbzCast.connected && QbzCast.qualityDetail !== "" visible: QbzCast.connected && QbzCast.qualityDetail !== ""
width: parent.width width: parent.width
height: visible ? implicitHeight : 0 // No `height:` binding: a Text without one takes its
// implicit height and a Column skips invisible items;
// the explicit binding raised a "binding loop for
// property height" warning on every connect.
text: QbzSession.tr("Streaming {} · {}", QbzSession.trRev) text: QbzSession.tr("Streaming {} · {}", QbzSession.trRev)
.replace("{}", QbzCast.protocol === "dlna" ? "DLNA" : "Chromecast") .replace("{}", QbzCast.protocol === "dlna" ? "DLNA" : "Chromecast")
.replace("{}", QbzCast.qualityDetail) + root.qualitySuffix .replace("{}", QbzCast.qualityDetail) + root.qualitySuffix