summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--resources/qml/voip/CallDevices.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/qml/voip/CallDevices.qml b/resources/qml/voip/CallDevices.qml

index 8b30c540..fd6b6005 100644 --- a/resources/qml/voip/CallDevices.qml +++ b/resources/qml/voip/CallDevices.qml
@@ -5,9 +5,15 @@ import im.nheko 1.0 Popup { modal: true - anchors.centerIn: parent palette: colors + // only set the anchors on Qt 5.12 or higher + // see https://doc.qt.io/qt-5/qml-qtquick-controls2-popup.html#anchors.centerIn-prop + Component.onCompleted: { + if (anchors) + anchors.centerIn = parent; + } + ColumnLayout { spacing: 16