Make sure the function createRoomListContextMenu doesn't make the roomlist settings button visible on mobile
This commit is contained in:
@@ -376,11 +376,13 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
function createRoomListContextMenu() {
|
function createRoomListContextMenu() {
|
||||||
const menu = roomListContextMenu.createObject(page, {room: currentRoom})
|
const menu = roomListContextMenu.createObject(page, {room: currentRoom})
|
||||||
configButton.visible = true
|
if (!Kirigami.Settings.isMobile) {
|
||||||
configButton.down = true
|
configButton.visible = true
|
||||||
|
configButton.down = true
|
||||||
|
}
|
||||||
menu.closed.connect(function() {
|
menu.closed.connect(function() {
|
||||||
configButton.down = undefined
|
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()
|
menu.open()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user