Hide "QR-code" button from config import menu for Android devices without camera

This commit is contained in:
albexk 2024-01-20 18:16:45 +03:00
parent 3e02dfef63
commit 2b61c48303
6 changed files with 25 additions and 2 deletions

View file

@ -90,7 +90,7 @@ It's okay as long as it's from someone you trust.")
LabelWithButtonType {
Layout.fillWidth: true
visible: GC.isMobile()
visible: SettingsController.isCameraPresent()
text: qsTr("QR-code")
rightImageSource: "qrc:/images/controls/chevron-right.svg"
@ -105,7 +105,7 @@ It's okay as long as it's from someone you trust.")
}
DividerType {
visible: GC.isMobile()
visible: SettingsController.isCameraPresent()
}
LabelWithButtonType {