Disable leave/forget keybinds while offline

This commit is contained in:
miruka 2020-07-10 12:51:03 -04:00
parent 12b6b74881
commit e34bfd48a7

View File

@ -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},