1 files changed, 16 insertions, 17 deletions
diff --git a/resources/qml/voip/CallDevices.qml b/resources/qml/voip/CallDevices.qml
index f0847b14..8b30c540 100644
--- a/resources/qml/voip/CallDevices.qml
+++ b/resources/qml/voip/CallDevices.qml
@@ -4,29 +4,20 @@ import QtQuick.Layouts 1.2
import im.nheko 1.0
Popup {
-
modal: true
anchors.centerIn: parent
- background: Rectangle {
- color: colors.window
- border.color: colors.windowText
- }
-
palette: colors
ColumnLayout {
-
spacing: 16
ColumnLayout {
spacing: 8
-
Layout.topMargin: 8
Layout.leftMargin: 8
Layout.rightMargin: 8
RowLayout {
-
Image {
Layout.preferredWidth: 22
Layout.preferredHeight: 22
@@ -35,13 +26,14 @@ Popup {
ComboBox {
id: micCombo
+
Layout.fillWidth: true
model: CallManager.mics
}
+
}
RowLayout {
-
visible: CallManager.isVideo && CallManager.cameras.length > 0
Image {
@@ -52,28 +44,35 @@ Popup {
ComboBox {
id: cameraCombo
+
Layout.fillWidth: true
model: CallManager.cameras
}
+
}
+
}
DialogButtonBox {
-
Layout.leftMargin: 128
standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel
+ onAccepted: {
+ Settings.microphone = micCombo.currentText;
+ if (cameraCombo.visible)
+ Settings.camera = cameraCombo.currentText;
- onAccepted: {
- Settings.microphone = micCombo.currentText
- if (cameraCombo.visible) {
- Settings.camera = cameraCombo.currentText
- }
close();
}
-
onRejected: {
close();
}
}
+
}
+
+ background: Rectangle {
+ color: colors.window
+ border.color: colors.windowText
+ }
+
}
|