Skip to content

Instantly share code, notes, and snippets.

@b100dian
Last active September 19, 2021 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b100dian/4949dc4da536863cfa73a1ca3583f004 to your computer and use it in GitHub Desktop.
Save b100dian/4949dc4da536863cfa73a1ca3583f004 to your computer and use it in GitHub Desktop.
Hides the cameras that didn't receive a label in jolla-camera-hw.txt
--- a/usr/lib64/qt5/qml/com/jolla/camera/settings/CameraDeviceToggle.qml
+++ b/usr/lib64/qt5/qml/com/jolla/camera/settings/CameraDeviceToggle.qml
@@ -26,6 +26,7 @@
highlighted: mouseArea.pressed && mouseArea.containsMouse || modelData.deviceId === Settings.deviceId
width: Theme.itemSizeExtraSmall
height: Theme.itemSizeExtraSmall
+ visible: root.labels.length > model.index
MouseArea {
id: mouseArea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment