summary refs log tree commit diff
path: root/resources/qml/RoomList.qml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--resources/qml/RoomList.qml23
1 files changed, 15 insertions, 8 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml
index 44a3e333..4557b5a3 100644
--- a/resources/qml/RoomList.qml
+++ b/resources/qml/RoomList.qml
@@ -732,14 +732,6 @@ Page {
                 }
             }
         }
-        Component {
-            id: nestedSpaceMenuLevel
-
-            SpaceMenuLevel {
-                childMenu: rootSpaceMenu.childMenu
-                roomid: roomContextMenu.roomid
-            }
-        }
         Menu {
             id: roomContextMenu
 
@@ -752,6 +744,21 @@ Page {
                 popup(parent);
             }
 
+            Component.onCompleted: {
+                if (roomContextMenu.popupType != undefined) {
+                    roomContextMenu.popupType = 2; // Popup.Native with fallback on older Qt (<6.8.0)
+                }
+            }
+
+            Component {
+                id: nestedSpaceMenuLevel
+
+                SpaceMenuLevel {
+                    childMenu: rootSpaceMenu.childMenu
+                    roomid: roomContextMenu.roomid
+                }
+            }
+
             InputDialog {
                 id: newTag