mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-19 16:33:01 +08:00
commit
5ee9c23fc4
@ -606,6 +606,7 @@ class _ControlMenu extends StatelessWidget {
|
||||
Divider(),
|
||||
ctrlAltDel(),
|
||||
restart(),
|
||||
insertLock(),
|
||||
blockUserInput(),
|
||||
switchSides(),
|
||||
refresh(),
|
||||
@ -789,6 +790,16 @@ class _ControlMenu extends StatelessWidget {
|
||||
onPressed: () => showRestartRemoteDevice(pi, id, ffi.dialogManager));
|
||||
}
|
||||
|
||||
insertLock() {
|
||||
final perms = ffi.ffiModel.permissions;
|
||||
final visible = perms['keyboard'] != false;
|
||||
if (!visible) return Offstage();
|
||||
return _MenuItemButton(
|
||||
child: Text(translate('Insert Lock')),
|
||||
ffi: ffi,
|
||||
onPressed: () => bind.sessionLockScreen(id: id));
|
||||
}
|
||||
|
||||
blockUserInput() {
|
||||
final perms = ffi.ffiModel.permissions;
|
||||
final pi = ffi.ffiModel.pi;
|
||||
|
Loading…
Reference in New Issue
Block a user