check keyboard for lock-after-session-end

This commit is contained in:
open-trade 2020-11-30 16:05:23 +08:00
parent e62f411a08
commit b5607e5460

View File

@ -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);