mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2025-12-19 01:52:30 +08:00
mainview: hide qr code generation button for sip account
Change-Id: I4a63c5d719dfbaf4d4d8b3c276e5cafe749ffcf0
This commit is contained in:
@@ -161,15 +161,18 @@ ComboBox {
|
||||
buttonImageHeight: height - 8
|
||||
buttonImageWidth: width - 8
|
||||
radius: height / 2
|
||||
|
||||
width: 24
|
||||
height: 24
|
||||
|
||||
visible: AccountAdapter.currentAccountType === Profile.Type.RING
|
||||
toolTipText: JamiStrings.displayQRCode
|
||||
hoverEnabled: true
|
||||
|
||||
source: "qrc:/images/qrcode.png"
|
||||
backgroundColor: "white"
|
||||
onClicked: {
|
||||
if (visible)
|
||||
qrDialog.open()
|
||||
}
|
||||
}
|
||||
@@ -187,9 +190,12 @@ ComboBox {
|
||||
width: 25
|
||||
height: 25
|
||||
|
||||
source: !mainViewWindow.inSettingsView ? "qrc:/images/icons/round-settings-24px.svg" :
|
||||
source: !mainViewWindow.inSettingsView ?
|
||||
"qrc:/images/icons/round-settings-24px.svg" :
|
||||
"qrc:/images/icons/round-close-24px.svg"
|
||||
toolTipText: !mainViewWindow.inSettingsView ? JamiStrings.openSettings : JamiStrings.closeSettings
|
||||
toolTipText: !mainViewWindow.inSettingsView ?
|
||||
JamiStrings.openSettings :
|
||||
JamiStrings.closeSettings
|
||||
hoverEnabled: true
|
||||
|
||||
backgroundColor: "white"
|
||||
|
||||
@@ -43,7 +43,8 @@ Dialog {
|
||||
|
||||
fillMode: Image.PreserveAspectFit
|
||||
source: {
|
||||
if (AccountAdapter.currentAccountId)
|
||||
if (AccountAdapter.currentAccountId &&
|
||||
AccountAdapter.currentAccountType === Profile.Type.RING)
|
||||
return "image://qrImage/account_" + AccountAdapter.currentAccountId
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user