From eb5523a69ca8932c29b3eff2ebb725c886dd2802 Mon Sep 17 00:00:00 2001 From: James Graham Date: Wed, 14 Dec 2022 18:22:42 +0000 Subject: [PATCH] Make sure the function createRoomListContextMenu doesn't make the roomlist settings button visible on mobile --- src/qml/Page/RoomListPage.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/qml/Page/RoomListPage.qml b/src/qml/Page/RoomListPage.qml index 87c04f0c0..4298fe668 100644 --- a/src/qml/Page/RoomListPage.qml +++ b/src/qml/Page/RoomListPage.qml @@ -376,11 +376,13 @@ Kirigami.ScrollablePage { function createRoomListContextMenu() { const menu = roomListContextMenu.createObject(page, {room: currentRoom}) - configButton.visible = true - configButton.down = true + if (!Kirigami.Settings.isMobile) { + configButton.visible = true + configButton.down = true + } menu.closed.connect(function() { configButton.down = undefined - configButton.visible = Qt.binding(function() { return roomListItem.hovered || Kirigami.Settings.isMobile }) + configButton.visible = Qt.binding(function() { return roomListItem.hovered && !Kirigami.Settings.isMobile }) }) menu.open() }