check keyboard for lock-after-session-end
This commit is contained in:
parent
e62f411a08
commit
b5607e5460
@ -672,6 +672,17 @@ void showOptions(BuildContext context) {
|
|||||||
},
|
},
|
||||||
title: Text('Mute')));
|
title: Text('Mute')));
|
||||||
}
|
}
|
||||||
|
if (FFI.ffiModel.permissions['keyboard'] != false) {
|
||||||
|
CheckboxListTile(
|
||||||
|
value: FFI.getByName('toggle_option', 'lock-after-session-end') ==
|
||||||
|
'true',
|
||||||
|
onChanged: (v) {
|
||||||
|
setState(() {
|
||||||
|
FFI.setByName('toggle_option', 'lock-after-session-end');
|
||||||
|
});
|
||||||
|
},
|
||||||
|
title: Text('Lock after session end'));
|
||||||
|
}
|
||||||
return Tuple3(
|
return Tuple3(
|
||||||
null,
|
null,
|
||||||
Column(
|
Column(
|
||||||
@ -725,17 +736,6 @@ void showOptions(BuildContext context) {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
title: Text('Show remote cursor')),
|
title: Text('Show remote cursor')),
|
||||||
CheckboxListTile(
|
|
||||||
value: FFI.getByName(
|
|
||||||
'toggle_option', 'lock-after-session-end') ==
|
|
||||||
'true',
|
|
||||||
onChanged: (v) {
|
|
||||||
setState(() {
|
|
||||||
FFI.setByName(
|
|
||||||
'toggle_option', 'lock-after-session-end');
|
|
||||||
});
|
|
||||||
},
|
|
||||||
title: Text('Lock after session end'))
|
|
||||||
] +
|
] +
|
||||||
more),
|
more),
|
||||||
null);
|
null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user