From e34bfd48a73fdbd91d0a31825b95b11963697946 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 10 Jul 2020 12:51:03 -0400 Subject: [PATCH] Disable leave/forget keybinds while offline --- src/gui/Pages/Chat/Chat.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/Pages/Chat/Chat.qml b/src/gui/Pages/Chat/Chat.qml index d25e9a57..3e0bf0a8 100644 --- a/src/gui/Pages/Chat/Chat.qml +++ b/src/gui/Pages/Chat/Chat.qml @@ -35,6 +35,7 @@ Item { HShortcut { sequences: window.settings.keys.leaveRoom + active: userInfo.presence !== "offline" onActivated: utils.makePopup( "Popups/LeaveRoomPopup.qml", {userId, roomId, roomName: roomInfo.display_name}, @@ -43,6 +44,7 @@ Item { HShortcut { sequences: window.settings.keys.forgetRoom + active: userInfo.presence !== "offline" onActivated: utils.makePopup( "Popups/ForgetRoomPopup.qml", {userId, roomId, roomName: roomInfo.display_name},