mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix screen share calls
This commit is contained in:
parent
e98145daec
commit
4f44b63a49
2 changed files with 18 additions and 17 deletions
|
@ -108,12 +108,17 @@ Popup {
|
||||||
text: qsTr("Screen")
|
text: qsTr("Screen")
|
||||||
icon.source: "qrc:/icons/icons/ui/screen-share.svg"
|
icon.source: "qrc:/icons/icons/ui/screen-share.svg"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
if (buttonLayout.validateMic()) {
|
||||||
|
Settings.microphone = micCombo.currentText;
|
||||||
|
Settings.camera = cameraCombo.currentText;
|
||||||
|
|
||||||
var dialog = screenShareDialog.createObject(timelineRoot);
|
var dialog = screenShareDialog.createObject(timelineRoot);
|
||||||
dialog.open();
|
dialog.open();
|
||||||
timelineRoot.destroyOnClose(dialog);
|
timelineRoot.destroyOnClose(dialog);
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
text: qsTr("Cancel")
|
text: qsTr("Cancel")
|
||||||
|
|
|
@ -83,7 +83,7 @@ Popup {
|
||||||
id: pipCheckBox
|
id: pipCheckBox
|
||||||
|
|
||||||
enabled: CallManager.cameras.length > 0
|
enabled: CallManager.cameras.length > 0
|
||||||
checked: Settings.screenSharePiP
|
checked: CallManager.cameras.length > 0 && Settings.screenSharePiP
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,21 +125,17 @@ Popup {
|
||||||
Button {
|
Button {
|
||||||
text: qsTr("Share")
|
text: qsTr("Share")
|
||||||
icon.source: "qrc:/icons/icons/ui/screen-share.svg"
|
icon.source: "qrc:/icons/icons/ui/screen-share.svg"
|
||||||
onClicked: {
|
|
||||||
if (buttonLayout.validateMic()) {
|
|
||||||
Settings.microphone = micCombo.currentText;
|
|
||||||
if (pipCheckBox.checked)
|
|
||||||
Settings.camera = cameraCombo.currentText;
|
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
Settings.screenShareFrameRate = frameRateCombo.currentText;
|
Settings.screenShareFrameRate = frameRateCombo.currentText;
|
||||||
Settings.screenSharePiP = pipCheckBox.checked;
|
Settings.screenSharePiP = pipCheckBox.checked;
|
||||||
Settings.screenShareRemoteVideo = remoteVideoCheckBox.checked;
|
Settings.screenShareRemoteVideo = remoteVideoCheckBox.checked;
|
||||||
Settings.screenShareHideCursor = hideCursorCheckBox.checked;
|
Settings.screenShareHideCursor = hideCursorCheckBox.checked;
|
||||||
|
|
||||||
CallManager.sendInvite(room.roomId, CallType.SCREEN, windowCombo.currentIndex);
|
CallManager.sendInvite(room.roomId, CallType.SCREEN, windowCombo.currentIndex);
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
text: qsTr("Preview")
|
text: qsTr("Preview")
|
||||||
|
|
Loading…
Reference in a new issue