Skip to content
Snippets Groups Projects
Commit 2215d51f authored by Capucine Berthet's avatar Capucine Berthet Committed by Sébastien Blin
Browse files

disable video and photo capture when no webcam is detected

GitLab: #1470
Change-Id: I266667d1ffe53b3839dfb3327db01cfda331c71f
parent 127b39be
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,9 @@ BaseModalDialog {
height: buttonSize
width: buttonSize
enabled: VideoDevices.listSize !== 0
hoverEnabled: enabled
normalColor: "transparent"
imageColor: hovered ? JamiTheme.textColor : JamiTheme.buttonTintedGreyHovered
toolTipText: JamiStrings.takePhoto
......
......@@ -16,6 +16,8 @@
*/
import QtQuick
import net.jami.Constants 1.1
import net.jami.Adapters 1.1
import "contextmenu"
BaseContextMenu {
......@@ -43,6 +45,8 @@ BaseContextMenu {
iconSource: JamiResources.message_video_black_24dp_svg
itemName: JamiStrings.leaveVideoMessage
isActif: VideoDevices.listSize !== 0
onClicked: {
root.videoRecordMessageButtonClicked();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment