do not show 'Show remote cursor' if peer side is android

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-03-11 18:21:23 +08:00
parent 411ddb949b
commit 6cf81c811f

@ -1437,6 +1437,9 @@ class _DisplayMenuState extends State<_DisplayMenu> {
}
showRemoteCursor() {
if (widget.ffi.ffiModel.pi.platform == kPeerPlatformAndroid) {
return Offstage();
}
final visible = !widget.ffi.canvasModel.cursorEmbedded;
if (!visible) return Offstage();
final state = ShowRemoteCursorState.find(widget.id);